简体   繁体   中英

whats meaning of “Error establishing a database connection”

i have one wordpress blog name as

http://shareprogrammingtips.com/

its hosted on hostgator and works fine. But suddendly i am getting error like

Database Error:

Error establishing a database connection  

when i open my blog.

i have not done anything with php my admin of my webspace. i havent touch any setting still i am getting this.

why this error comes and how can i remove that ?

Chances are there is an issue with one of the following:

  • The database server is down (try connecting via a MySQL client such as PHPMyAdmin or the MySQL admin tools http://dev.mysql.com/downloads/gui-tools/5.0.html )
  • Incorrect username/password
  • Your username/password is correct however you don't have permission to connect from your current hostname (eg database only allows local connections).
  • You specified a database table that does not exist.

If you have't changed anything in the site wp-config.php or in Wordpress at all, it's probably nothing more than a temporary glitch at your webhost. Open a ticket with them.

Hostgator places a limit that database can consume only 25% of total memory assigned to a hosting account. You have mysql server going away that crashed your server.Kind of "Memory Issues" if it is repeatedly occuring the hostgator support will finally ask you to upgrade

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM