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)解決方法:參考鏈接

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