這篇文章給大家介紹如何解決因為事務(wù)日志問(wèn)題無(wú)法啟動(dòng)的問(wèn)題,內容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。
[root@testdb var]#service mysql start
Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql/mysql.pid).
初看,好像是權限問(wèn)題,但仔細檢查權限,沒(méi)有發(fā)現問(wèn)題,所以進(jìn)入錯誤日志看
[root@testdb var]# more testdb.err 2020-06-12T08:30:25.273479Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2020-06-12T08:30:25.273850Z 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.26-log) starting as process 10090 ... 2020-06-12T08:30:25.286777Z 0 [Note] InnoDB: PUNCH HOLE support available 2020-06-12T08:30:25.286827Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2020-06-12T08:30:25.286838Z 0 [Note] InnoDB: Uses event mutexes 2020-06-12T08:30:25.286845Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2020-06-12T08:30:25.286852Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2020-06-12T08:30:25.286856Z 0 [Note] InnoDB: Using Linux native AIO 2020-06-12T08:30:25.288765Z 0 [Note] InnoDB: Number of pools: 1 2020-06-12T08:30:25.288939Z 0 [Note] InnoDB: Using CPU crc32 instructions 2020-06-12T08:30:25.291804Z 0 [Note] InnoDB: Initializing buffer pool, total size = 4G, instances = 8, chunk size = 128M 2020-06-12T08:30:25.552835Z 0 [Note] InnoDB: Completed initialization of buffer pool 2020-06-12T08:30:25.589770Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of se tpriority(). 2020-06-12T08:30:25.603855Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2020-06-12T08:30:25.627920Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 3970243421 and the end 3970243072. 2020-06-12T08:30:25.627962Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 2020-06-12T08:30:26.229118Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 2020-06-12T08:30:26.229160Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2020-06-12T08:30:26.229168Z 0 [ERROR] Failed to initialize builtin plugins. 2020-06-12T08:30:26.229172Z 0 [ERROR] Aborting
查看日志,發(fā)現如下:
InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 3970243421 and the end 3970243072.
事務(wù)日志有斷檔,估計也找不出來(lái)了,基于此,只能把原來(lái)的事務(wù)日志ib_logfile0和ib_logfile1重命名或者刪除掉,然后再重新啟動(dòng)
[root@testdb var]#service mysql start Starting MySQL...SUCCESS!
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系我們QQ:712375056,同時(shí)歡迎投稿傳遞力量。
Copyright ? 2009-2022 56dr.com. All Rights Reserved. 特網(wǎng)科技 特網(wǎng)云 版權所有 特網(wǎng)科技 粵ICP備16109289號
域名注冊服務(wù)機構:阿里云計算有限公司(萬(wàn)網(wǎng)) 域名服務(wù)機構:煙臺帝思普網(wǎng)絡(luò )科技有限公司(DNSPod) CDN服務(wù):阿里云計算有限公司 百度云 中國互聯(lián)網(wǎng)舉報中心 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證B2
建議您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流瀏覽器瀏覽本網(wǎng)站