使用xtrabackup恢復重啟出錯Starting MySQL..The server quit without updating PID file ([FAILED]tion/mysql/data
阿新 • • 發佈:2018-12-04
剛開始學習使用xtrabackp的恢復,在啟動的時候報錯
/etc/init.d/mysqld start
Starting MySQL..The server quit without updating PID file ([FAILED]tion/mysql/data/localhost.localdomain.pid)
檢視mysql的錯誤日誌
發現有報錯
[ERROR] Event Scheduler: Failed to open table mysql.event
[ERROR] Event Scheduler: Error while loading from disk.
[Note] Event Scheduler: Purging the queue. 0 events
[ERROR] Aborting
InnoDB: Starting shutdown...
InnoDB: Shutdown completed; log sequence number 284877836
[Note] /application/mysql/bin/mysqld: Shutdown complete
mysqld_safe mysqld from pid file /application/mysql/data/localhost.localdomain.pid ended
發現說不能開啟表,在mysql的資料目錄修改許可權,在啟動還是報相同的錯
沒有辦法 ,只能百度 ,找了一圈,發現一種方法:
在mysql的引數檔案中新增引數 “event_scheduler=DISABLED”,重啟mysql,達到遮蔽該新功能。
發現數據庫可以啟動,原因暫時未知