从2012年11月9号进入公司踏入社会以来。
今天如通常一样走进项目组。
我的客户网站又出问题了。
今天的问题是Mysql总是无缘无故停止。
我登录客户服务器。
history | grep 'mysql' 一下。
我看到用户已经敲了600多行start mysql
我知道这是已经敲到崩溃边缘才来找我的。
我也不知道是怎么回事,就开始
客户问我。我问谷歌。
看了一圈最大的原因就是max_connections是问题。
#mysql -uroot -p
mysql>show variables like 'max_%';
看到max_connections=151
估计是太小了把。
然后
#vi my.cnf
max_connections=3000
给用户打个电话咨询了一下能否重启mysql后
#service mysql restart
#mysql -uroot -p
mysql>show variables like 'max_%';
看到max_connections=3000
好把。目前我只能等待用户反馈了。
转载于:https://blog.51cto.com/songlisha/1082467