Board logo

标题: 网站显示这个怎么回事?连接数据库失败,请求过多。 [打印本页]

作者: 3600hk    时间: 2010-4-27 14:38     标题: 网站显示这个怎么回事?连接数据库失败,请求过多。

Discuz! info: Can not connect to MySQL server

Time: 2010-4-27 2:33pm
Script: /index.php

Error: Too many connections
Errno.: 1040

Similar error report has been dispatched to administrator before.

到 [url=http://faq.comsenz.com/]http://faq.comsenz.com 搜索此错误的解决方案[/url]



我用的是外部数据库


作者: idc886    时间: 2010-4-27 15:56

链接数过多。。。数据库无法链接了。。。过会就会恢复。

用外部数据库,会影响网站速度,用外部数据库会使CPU、内存占用增高。

如果,你网站流量大,用远程数据库。就很容易出现这问题。。

记得,设置好你网站的缓存,以减少频繁调用数据库,看这贴:

★ 站长必看:很重要 ★ 开启网站缓存,SS、HM、DZ论坛开启缓存,
PHPwind论坛开启缓存,
减少CPU占用





欢迎光临 免费国外空间,国外免费空间, (http://idc866.com/) Powered by Discuz! 7.2