Originally Posted by
EuclideanCoffee
Nothing is wrong for mysqldump single database. I do this routinely. Without the error message however, I cannot debug.
I try to explain myself better:
With the option for single databases I received the error:
Code:
root@linux:/home/paolo# mysqldump -u root -p [password_user_root] --databases wp | gzip > /var/www/example.com/backupsql/wp_`date +\%F_\%T`.sql.gz
Enter password:
mysqldump: Got error: 1049: Unknown database '[password_user_root]' when selecting the database
With the option for all databases the password is not required and the dump is performed correctly:
Code:
root@linux:/home/paolo# mysqldump -u root -p [password_user_root] --all-databases | gzip > /var/www/example.com/backupsql/wp_`date +\%F_\%T`.sql.gz
root@linux:/home/paolo#
Bookmarks