Home  >  Article  >  Database  >  命令行修改linux下mysql的并发数

命令行修改linux下mysql的并发数

WBOY
WBOYOriginal
2016-06-07 15:25:001237browse

用这个SecureCRT连接linux主机 登录后 修改最大连接数为200 [root@localhost ~]# nano /etc/my.cnf 输入以上命令后会进入my.cnf文件内容,在其中加入下面这行代码 max_connections=200 使用上下箭头移动光标,输入后按ctrlo组合键后保存,保存的时候要再按回

用这个SecureCRT连接linux主机 登录后 

修改最大连接数为200

[root@localhost ~]# nano /etc/my.cnf

输入以上命令后会进入my.cnf文件内容,在其中加入下面这行代码

max_connections=200

使用上下箭头移动光标,输入后按ctrl+o组合键后保存,保存的时候要再按回车键确定的,这个地方也是我开始没注意的地方,确定后按ctrl+x组合键退出回到命令行

最后一步就是重启mysql

[root@localhost ~]# service mysqld restart //重启mysql的命令

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn