Warning: Too many connections in /usr/myhome/connect.php on line 25
Warning: MySQL Connection Failed: Too many connections in /usr/myhome/connect.php on line 25
Too many connections25行就是mysql_connect(X,X,X)的那行,真烦啊,常这样,怎么办呀.谢谢?
Warning: MySQL Connection Failed: Too many connections in /usr/myhome/connect.php on line 25
Too many connections25行就是mysql_connect(X,X,X)的那行,真烦啊,常这样,怎么办呀.谢谢?
解决方案 »
- MYSQL两个批量更新处理的效率优化小问题
- Lock wait timeout exceeded; try restarting transaction
- 关于买卖过程快速计算赚钱数量数据库表格设计问题,谢谢给与的任何帮助。
- MySQl能发email吗?
- mysql里是否有将varchar或char 转换为 int的函数!
- 请教关于pgsql参数mac_connections
- 怎样将linux平台的mysql数据库转换到windows平台?
- Suse Linux 执行mysqld_safe --skip-grant-tables &后出错
- 如何判断一条sql语句是否高效,也就是得出它们的成本
- 如何将show结果集插入到表中
- 一个关于MySQL数据库连接查询的问题
- mysql + ado 的问题,怪!
的,可以把它适当调大,
whereis safe_mysqld
找到safe_mysqld的位置,然后编辑它,找到mysqld启动的那两行,在后面加上参数
-O max_connections=1000
例如
--- safe_mysqld.orig Mon Sep 25 09:34:01 2000
+++ safe_mysqld Sun Sep 24 16:56:46 2000
@@ -109,10 +109,10 @@
if test "$#" -eq 0
then
nohup $ledir/mysqld --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR
- --skip-locking >> $err_log 2>&1
+ --skip-locking -O max_connections=1000 >> $err_log 2>&1
else
nohup $ledir/mysqld --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR
- --skip-locking "$@" >> $err_log 2>&1
+ --skip-locking "$@" -O max_connections=1000 >> $err_log 2>&1
fi
if test ! -f $pid_file # This is removed if normal shutdown
then
然后关闭mysql重启它,用
/mysqladmin所在路径/mysqladmin -uroot -p variables
输入root数据库账号的密码后可看到
| max_connections | 1000 |
即新改动已经生效。