mysql数据库自动关闭

  • 起因:部署在服务器的项目长时间未访问报错
    在这里插入图片描述
  • 分析:数据库自动关闭造成的 参考链接
  • 解决:
    查看所有tcp端口,确认mysql状态:netstat -ntlp
    在这里插入图片描述
    重启mysql :service mysql start
    1)问题1 重启中出现
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.

2)定位错误

tail /var/log/mysql/error.log
Cannot allocate memory for the buffer pool
Plugin initialization aborted with error Generic error.

在这里插入图片描述
3)解决方法:参考链接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章