在LINUX下,怎样设置最大连接数

同上
---------------------------------------------------------------

在MySQL中执行语句:
set GLOBAL max_connections=100;
所有参数可以用:
./mysqladmin -u root -p variables
查看
---------------------------------------------------------------

你可以修改my.cnf文件,
MySQL自带了几个配置文件的例子,
名为my-medium.cnf,mylarge.cnf,mysmall.cnf

你可以自己参考一下

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus