Hi danapestic,
I would check with your WebHost to make sure the database is still up, and that no tables got corrupted and need to be repaired.
The only other thing it could be is user/pass/connection string got changed in wp-config but it does not sound like anything changed there.
Blake
If you haven’t resolved your issue yet, here’s something to try. In your wp-config.php file, you’ll find the following line:
define('WP_DEBUG', false);
Change it to these two lines:
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);
WordPress will now display the actual database error instead of a non-helpful “Error establishing a database connection” message. Please post that message here, and we should be able to help you resolve this.
After you post the error message here, you should change the above two lines back to:
define('WP_DEBUG', false);
Hi,
can you tell me how do I get to the wp-config.php file. I can’t access administration view of website.
Also if I go back to privious versions I get this message.
“”
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at mysql.skole.hr. This could mean your host’s database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
“”
Thank you
Accessing wp-config.php is done through FTP, or through your hosting company’s control panel.
You should contact your hosting company, because it appears you are unable to connect to the MySQL server. Perhaps your hosting has limits on database access, and you have exceeded those limits.