Mysql错误处理: /usr/bin/mysqld_safe: line xxx: xxxx Ki

<p>早上看到服务器mysql挂掉了。于是重启mysql,启动失败:</p><pre class="brush:bash;toolbar:false">/usr/bin/mysqld_safe:line183:23638Killed nohup/usr/sbin/mysqld--basedir=/usr--datadir=/var/lib/mysql--plugin-dir=/usr/lib64/mysql/plugin--user=mysql--log-error=/var/log/mysqld.log--pid-file=/var/run/mysqld/mysqld.pid--socket=/var/lib/mysql/mysql.sock&lt;/dev/null&gt;/dev/null2&gt;&amp;1 MySQLDaemonfailedtostart. Startingmysqld:[FAILED]</pre><p>解决:</p><p>vim /etc/my.cnf</p><p>[root@YoujiePMP ~]# vim /etc/my.cnf</p><p>加入配置:</p><p>key_buffer=16K</p><p>table_open_cache=4</p><p>query_cache_limit=256K</p><p>query_cache_size=4M</p><p>max_allowed_packet=1M</p><p>sort_buffer_size=64K</p><p>read_buffer_size=256K</p><p>thread_stack=64K</p><p>innodb_buffer_pool_size = 56M</p><p></p><p>保存。重启mysql</p><p>service mysqld restart</p><p><img src="/up_pic/201901/100323205068.png" title="100323205068.png" alt="1.png"/></p>
RangeTime:0.007387s
RangeMem:204.58 KB
返回顶部 留言