Error establishing a database connection

When you have a WordPress site and you get the following error message when you try to open your website then there is something wrong with the database data.
The first thing you can check is the announcements page of MijnHostingPartner.nl as soon as it occurs that a MySQL server has problems then this will be reported here immediately.
If you do not see any notification of this then it is in the code of your website.

What can be checked next is if you can login with the existing data from your database at the following link:



https://mysqlwebadmin.nl/

If you can log in , go to the control panel and look for the wp-config.php file in the file manager. This can be found directly in the wwwroot.

If there is no login then you can adjust / restore the data in the following way. After this you can proceed to the next step.

You go to the file manager in the control panel and navigate to the wwwroot, then open the file wp-config.php.
In this file you can go to line 17 and check the details of your server and database login.

In almost all cases, there is an error here that can be modified directly in the file. You can modify this in the following way:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME','Here your database name');

/** MySQL database username */
define('DB_USER','Use your Database here')r');

/** MySQL database password */
define('DB_PASSWORD', 'Here yourpassword'); /**

/** MySQL hostname */
define('DB_HOST','mysql(your server).myhostingpartner.com');

For example: mysql5.myhostingpartner.nl


If you still get the same error message then you can contact us via the chat or create a ticket in the customer panel.
Include a copy of your wp-config.php file. Then we will check it for you.




keywords: database error WordPress can't connect no connection WordPress my-sql MySQL mysql