1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Error: the site no longer displays anything after changing a MySQL user's password
When the script (CMS WordPress, Prestashop, or any other application that uses MySQL databases) in your pages is no longer able to connect to the MySQL database, an error message may be displayed, such as:
- Error when connecting to the database
- Database Error: Unable to connect to the database:Could not connect to MySQL
- Link to database cannot be established
In this case, you must inspect the recent history:
- Have you made any changes to the configuration file for the script in question? Has it been edited, modified or moved?
Sometimes, the involuntary insertion of a space before or after a word can cut the link between the Web server and the database server. Go back over your file modifications. If necessary, restore an old version of the files that you have recently modified: https://faq.infomaniak.com/1655
- Have any changes been made to the database password in Infomaniak Manager?
If you change your database password via the Infomaniak admin panel, your script, which searches for information in the databases, will no longer display anything. Changing something in the admin panel means that it must also be changed everywhere else. The changes you make in the Manager must also be repeated / carried over to the script configuration file by logging in via FTP and modifying the appropriate file, generally "wp-config.php", "configuration.php" or similar.
- Has there been a server relocation announced by our services?
If this error follows a server relocation or any other operation announced by email and related to the product concerned, feel free to contact us (click here).