首页查找原因,我是因为mysql在执行大数据中强行给restart就启不来了,
查看系统日志文件:
输入命令:locate syslog
查看syslog
tail -n 40 /var/log/syslog
看到有这么一句:
apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/mysqld" pid=2693 comm="apparmor_parser"
sudo apt-get install apparmor-utils
sudo aa-complain /usr/sbin/mysqld
sudo /etc/init.d/apparmor reload
执行完了还是无法启动,在帖子后面还看到一句:
sudo mv /var/lib/mysql/ib_logfile* /tmp
看来是前面强势重启导致日志错误了
参考资料:
http://www.cnblogs.com/flex_fly/p/3578807.html
https://askubuntu.com/questions/127264/cant-start-mysql-mysql-respawning-too-fast-stopped
http://blog.csdn.net/linuxheik/article/details/62427759