KB10029 MySQL application backup error - [mysqldump: Got error: 1045: "Access denied for user 'user_backup'@'localhost' (using password: NO)" when trying to connect ]

📚

Documentation

Installation guides, configuration steps, and product documentation.

Explore documentation →

🎧

Support

Create a support request or review your existing cases.

Go to support →

⬇️

Download trial

Download the product trial and try it out.

View downloads →

KB10029 MySQL application backup error - [mysqldump: Got error: 1045: "Access denied for user 'user_backup'@'localhost' (using password: NO)" when trying to connect ]

KB ID: 10029

Product: vProtect

Version: 4.0.0 +

Published: 2021-03-10

Last modified: 2021-03-10

Problem

You have correctly set up all the things needed to back up your MySQL database, but encountered an error saying you are not using a password.

ExternalAPIException: Command execution failed: $VP_MYSQL_SCRIPTPATH/vp_backup_mysql.sh $VP_MYSQL_OPERATOR $VP_MYSQL_LOGFILE Return code: 1 output: [0.2 1 ] error: [mysqldump: Got error: 1045: "Access denied for user 'user_backup'@'localhost' (using password: NO)" when trying to connect ]

Solution

If you are sure that you type the password, we have only one possibility to see an error like that.

Because the application backup feature bases on bash scripts we need to remember about one limitation for all bash scripts.

The bash script may have problems with a password that contains special characters such as: #, \, !, @ etc.

 

Unfortunately, there is no one perfect solution for that, so we recommend to change the password for your backup user.

How to change MySQL user's password? Please, this is the command: SET PASSWORD FOR 'user'@'host' = PASSWORD('new_pass');