博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
设置MYSQL最大连接数与WAIT_TIMEOUT
阅读量:4070 次
发布时间:2019-05-25

本文共 536 字,大约阅读时间需要 1 分钟。

设置mysql最大连接数

登录

mysql -u root -pEnter password:

修改最大连接数

mysql> set GLOBAL max_connections=200;Query OK, 0 rows affected (0.00 sec)

修改 wait_timeout

# vi /etc/my.cnf[mysqld]wait_timeout=60
mysql> show global variables like 'wait_time';Empty set (0.00 sec)mysql> show global variables like 'wait_timeout';+---------------+-------+| Variable_name | Value |+---------------+-------+| wait_timeout  | 60    |+---------------+-------+1 row in set (0.00 sec)

最后别忘了重启服务

service mysqld restartRedirecting to /bin/systemctl restart  mysqld.service

转载地址:http://nehji.baihongyu.com/

你可能感兴趣的文章
Python使用web.py读取Mysql的数据
查看>>
web.py操作mysql的数据
查看>>
python类的详析
查看>>
web.py的两种更新Mysql数据的方法
查看>>
前端网址总结
查看>>
前端知识总结一
查看>>
Python 字符串的操作
查看>>
python安装依赖modules pysnmp pyasn1.type pexpect configparser
查看>>
Python操作Mongodb插入数据的两种方法:insert_one()与insert_many()
查看>>
Python函数式编程——匿名函数lambda
查看>>
Python的getattr(),setattr(),delattr(),hasattr()
查看>>
js中的constructor与prototype
查看>>
Ajax中的get和post请求比较
查看>>
'VBoxManage' is not recognized as an internal or external command, operable program or batch file.
查看>>
Linux VNC server的安装及简单配置使用
查看>>
解决RHEL6 vncserver 启动 could not open default font 'fixed'错误.
查看>>
Linux 下路由的设置
查看>>
CentOS/Linux 网卡设置 IP地址配置
查看>>
Python实现ping指定IP
查看>>
linux下ping命令使用详解
查看>>