简体   繁体   English

“建立数据库连接出错”的含义是什么

[英]whats meaning of “Error establishing a database connection”

i have one wordpress blog name as 我有一个wordpress博客名称,

http://shareprogrammingtips.com/ http://shareprogrammingtips.com/

its hosted on hostgator and works fine. 它由hostgator托管,并且运行良好。 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. 我没有用php做我的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 ) 数据库服务器已关闭(尝试通过MySQL客户端(例如PHPMyAdmin或MySQL管理工具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. 如果您根本没有更改网站wp-config.php或Wordpress中的任何内容,则可能仅是您的Web主机出现临时故障。 Open a ticket with them. 和他们一起开票。

Hostgator places a limit that database can consume only 25% of total memory assigned to a hosting account. Hostgator设置了一个限制,即数据库只能消耗分配给托管帐户的总内存的25%。 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 您的mysql服务器消失了,这使您的服务器崩溃。如果“内存问题”反复发生,则hostgator支持将最终要求您进行升级

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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