邯郸市中医院:我的xdcad怎么上不去了。

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 18:28:29
出现了下面这样的画面,从昨天下午就一直这样。

发生了一些微小的问题在 数据库.
请重试刷新 你的浏览器.

lll一封 E-Mail 已经发到我们的技术人员, 如果问题仍然存在,你可以联系它.

我们感到非常抱歉.

Database error in vBulletin :

Link-ID == false, connect failed
mysql error: Can't connect to MySQL server on '61.152.251.206' (10060)

mysql error number: 2003

Date: Friday 24th of February 2006 02:46:07 PM

Script: /index.php
Referer:

要知道自己的mysql设置,可以 root 登录到mysql ,执行命令:
> show status; 查看当前状态
> show variables ; 查看当前 mysql 参数设置情况

检查 mysql 的参数: max_connections 默认是100的,需要更改这个参数。
网上很多帖子建议把它设置到最大:32000
实际 mysql 允许的最大连接数只去到 16384

修改这个参数有两种办法:
1。修改 my.cnf 文件(或者 my.ini)
------------------------------------------------
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
#datadir = /usr/local/mysql/data

skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache = 8
query_cache_size= 16M
# Try number of CPUs*2 for thread_concurrency
thread_concurrency = 8

# Added by DannyKang 20050109
max_connections = 32000
------------------------------------

加入红色字的那句:max_connections = 32000
跟着重启mysql :
$ /sbin/service mysql restart

然后再次以 root 身份登录进 mysql ,输入命令 show variables 检查 max_connections 参数是否已经生效。

2。修改 safe-mysqld 的启动参数
这个办法,我没有测试过。