MySQL v4.1.18 for Windows
2(已有0人评分)我要评分
- 类 型:
- 系统组件
- 平台:
- WinAll, WinXP, Win7
- 大 小:
- 38.6 MB
- 时 间:
- 2022-08-13
扫二维码下载到手机
纠错举报+ 展开全部 《 MySQL v4.1.18 for Windows》介绍
是一个多线程的,结构化查询语言(SQL)数据库服务器。SQL在世界上是最流行的数据库语言。MySQL的执行性能非常高,运行速度非常快,并非常容易使用。是一个非常棒的数据库。
加大MySQL的最大连接数
MySQLl的最大连接数默认是100, 这个数值对于并发连接很多的数据库应用是远远不够的,可以把它适当调大。
打whereis safe_mysqld 命令找到safe_mysqld的位置,
然后编辑它,vi 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 shutdown
输入root数据库账号的密码后可关闭mysql
然后重启动MySQL:
用 ./mysqld_safe &
启动后,再用 ./mysqladmin -uroot -p variables
| max_connections | 1000 |
即新改动已经生效。
加大MySQL的最大连接数
MySQLl的最大连接数默认是100, 这个数值对于并发连接很多的数据库应用是远远不够的,可以把它适当调大。
打whereis safe_mysqld 命令找到safe_mysqld的位置,
然后编辑它,vi 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 shutdown
输入root数据库账号的密码后可关闭mysql
然后重启动MySQL:
用 ./mysqld_safe &
启动后,再用 ./mysqladmin -uroot -p variables
| max_connections | 1000 |
即新改动已经生效。
文件信息
-
- 包名:
-
- MD5: