- 起因:部署在服務器的項目長時間未訪問報錯
- 分析:數據庫自動關閉造成的 參考鏈接
- 解決:
查看所有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)解決方法:參考鏈接