Skip to Content

Could not connect to database infinite loop on restore

How to solve could not connect to the database infinite loop on restore?


Overview: This article describes how to address the 'could not connect to the database' infinite loop on restore by ensuring that the MySQL root password does not include single or double quote characters


These characters can interfere with database connections and cause an infinite loop during restore operations.

So make sure that your MySQL root password does not contain any single or double quote characters. 

If you plan to reset the MySQL root password.

Mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'newpassword';

MySQL> FLUSH PRIVILEGES;

Contact support with any error messages you may have.


Related Articles:

Reset MySQL or MariaDB password