Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Resolve an interruption between WordPress and the database
This guide is for users making changes around a hosting environment where WordPress is installed.
Preamble
- Following a change in your web hosting plan (migration from the old v1 60 Go hosting plan to the current plans), it is possible that you will need to update the connection between the MySQL/MariaDB database and your WordPress site (to avoid errors such as "
error establishing a database connection" for example) and thus restore the link between WordPress and the MySQL/MariaDB database.
Modify important elements
Here are the details to update in the wp-config.php file so that your WordPress site works (in general, a prefix has simply been added before the existing database name and the username):
- the MySQL database name (bddname before, abcd_bddname after for example)
- the MySQL database host server (mysql.domain.xyz before, abcd.myd.infomaniak.com after for example)
- the username accessing the MySQL database (userbdd before, abcd_userbdd after for example)
Modify the WordPress wp-config.php file
To do this:
- Find and keep your current MySQL information according to the list above.
- Create an FTP account.
- Connect via FTP.
- Edit the
wp-config.phpfile located in the root folder of your WordPress site. - Find the relevant paragraph and update the 3 pieces of information (according to the list above).
- Save the file and that's it, your WordPress will now connect to the correct database!
Link to this FAQ:
Has this FAQ been helpful?