Backup-Manager icon indicating copy to clipboard operation
Backup-Manager copied to clipboard

Invalid mysqldump option

Open cyber01 opened this issue 9 years ago • 6 comments

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

cyber01 avatar Nov 25 '15 00:11 cyber01

MySQL 5.6 supports this option ( manual ), does your password contain extended/reserved characters ?

kissifrot avatar Nov 25 '15 15:11 kissifrot

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)

cyber01 avatar Nov 25 '15 15:11 cyber01

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 ;)

kissifrot avatar Nov 26 '15 09:11 kissifrot

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

cyber01 avatar Nov 26 '15 15:11 cyber01

Well if you could provide a debug output with the original command (not the altered -p one), that would help.

kissifrot avatar Dec 02 '15 12:12 kissifrot

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 localhost using password yes Then the backup is stoped (since it is not able to connect to the database)

cyber01 avatar Dec 02 '15 12:12 cyber01