Error in establishing a db connection

hello dear fellows

have a site that stilll does not work - it spits out the error in establishing a db connection

after doing some research i found out the possible options…and did some checks .

Error establishing database connection

believe it or not: the Errors remain the same - even if i follow this workout:

https://nestify.io/blog/wp_allow_repair-repair-optimize-wordpress-database/

Quote

The WP_ALLOW_REPAIR constant, when used, activates the native WordPress feature to repair corrupted tables in the database. The same feature can also be used to, in addition to repair, optimize tables.

If you are a seasoned professional, with advanced knowledge, prefer the use of tools for database management, or the unshakable terminal.

Using the WP_ALLOW_REPAIR constant
This constant must be placed in the wp-config.php file. Its value must be a true boolean. Like this:

define (‘WP_ALLOW_REPAIR’, true);

Once you have added this setting to the file and obviously saved it, access the following URL:

/wp-admin/maint/repair.php

WP will display the following interface:


A simple and explanatory interface with two alternatives: repair the database or repair and optimize the database. The difference between the two is that in the second alternative an optimization will be performed after the repair.

well i guess that the mysql-db-server still does not work at all.

Although error says that it could not establish connections with database, there may not be any issue on database side. This error with wordpress is well known. Check the SQL service in services console and see what account it is using to run. For testing, you can use your credentials (with which you logged on to the server) and then restart the SQL service.

Regards,
Adrian

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.