0

I am trying backup my mysql database of linux hosted website(remote server-cpanel account) using mysqldump and executing this code through php file(db_backup.php).

db_backup.php {

exec('mysqldump --user=MYUSERNAME --password=MYPASSWORD --host=localhost MYDBNAME> \home\kmnazar\public_htm\db\file.sql')

?> }

Unfortunately unable to produce any backup file.Please guide me to resolve the issue. Thanks in advance

1 Answer 1

0

try to use mysql -p -u username dbname < erecycler.net.sql this command

for export mysqldump -u [database_user] -p [database_name] > backup_livestore.sql

use this command

2
  • I need to backup my db not to restore
    – Abdul Aziz
    May 1, 2017 at 7:26
  • check i update my answer. May 1, 2017 at 7:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.