全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 977|回复: 6

[Windows VPS] wordpress 连接到数据库时出错 可能是主机负载问题么?

[复制链接]
发表于 2018-12-21 18:45:53 | 显示全部楼层 |阅读模式
连接到数据库时出错
这意味着我们与在localhost的数据库服务器失去了联系。这可能意味着您主机的数据库服务器未在运行。
您确定数据库服务器在运行吗?
您确定数据库服务器并未运行在高负载下吗?

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 localhost. 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?


wp-config的信息肯定是正确的,报错后只有重启LNMP才能恢复。
这是负载导致数据库卡死了么 或者主机的问题?
发表于 2018-12-21 18:46:42 来自手机 | 显示全部楼层
F5 多了。也會死
发表于 2018-12-21 18:51:59 | 显示全部楼层
很明显是mysql宕机了。。。

你可以尝试下 无法连接的时候 本机查看mysql是什么情况
发表于 2018-12-21 22:15:52 | 显示全部楼层
硬盘 没有空间了吧.. mysql 启动不了.
发表于 2018-12-21 22:29:45 来自手机 | 显示全部楼层
查日志是不是被cc了,mysql挂了重启数据库
发表于 2018-12-21 22:54:07 | 显示全部楼层
我的博客站也经常挂mysql,一直是重启mysql了事,下次看下日志到底什么原因
 楼主| 发表于 2018-12-24 16:58:11 | 显示全部楼层
已经禁用了mysql日志功能,5.7.x版本。
/usr/local/mysql/var 以下几个文件比较大,好几十MB,可以删除或释放空间么?
ibtmp1
ibdata1
ib_logfile0
ib_logfile1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-3-28 20:54 , Processed in 0.062270 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表