Backup-Manager
Backup-Manager copied to clipboard
Invalid mysqldump option
The current version of MySQL (I work with 5.6) does not support the --defaults-extra-file using a password which is transmitted, resulting in a backup instead get "mysqldump: Got error: 1045:" Access denied for user ..... . "
Why not just use the standard option -p? such as: -p$BM_MYSQL_ADMINPASS
MySQL 5.6 supports this option ( manual ), does your password contain extended/reserved characters ?
Latin symbols + numbers, various register
P.S. The documentation did not find any mention of this option, at least for the mysqldump P.P.S. in what format to specify a list of databases? I need to selectively back up multiple databases. I tried by a space - making a backup copy of the first, stops on this (but the process is not interrupted)
Do you have a full debug output of the backup command?
BTW putting passwords in the command would make them visible in the process list, not that secure ;)
Regarding debug output - the process is going well (if you use -p instead of the default-extra-file), but after the completion of a backup database process is not completed (infinitely continues to reserve the database).
As for the password appear in the process list: I make a small script that cycle selects all the database names and reserves in each individual file, with the so-called mysqldump: mysqldump -uroot -p$ROOT_PASS $i > $DIR/$i.sql Do not pay attention to the variables, the password indicated earlier in the variable In the process list of: top / htop: http://puu.sh/lzt84/5f2d8e7784.png ps aux: http://puu.sh/lzt9k/ac7a54b42a.png
Password changes automatically on the "x", so do not agree with you that the password is visible in the processes
Well if you could provide a debug output with the original command (not the altered -p one), that would help.
Unfortunately, there is no possibility to check (no access to the server where installed). But it turned out like this:
backup-manager -d -v
He (backup-manager) tries to create a file ~ / .backup-manager.conf (file extension can not remember).
It creates the file, writing in his section of the [client] and the password specified in the configuration file.
He then tries to connect to mysql (mysqldump), eventually get
access denied for user