Cannot connect to MySQL database
While restoring a database with BackWPup, you need to successfully set up a database connection. If you enter wrong access data, following error messages may occur:
Error messages:
1) Cannot connect to MySQL database 1045: Access denied for user ”@’localhost’ (using password: NO)
2) Cannot connect to MySQL database 1049: Unknown database ‘databasename’
3) Cannot connect to MySQL database 1045: Access denied for user ‘a’@’localhost’ (using password: YES)
BackWPup Issue Restore cannot connect Mysql Database – The Solution:
Please check your database connection settings in the file wp-config.php of your WordPress installation. Then copy the credentials in the form at step3 and try again.
If you don’t have access to this file, contact your hoster to provide you the database credentials.
Note:
The issue may be caused also by an invalid charset for the database, in that case you will be prompted for the correct one.
You can find that information in the file wp-config.php.