您好,登錄后才能下訂單哦!
這篇文章給大家介紹如何解決mysql因?yàn)槭聞?wù)日志問題無法啟動的問題,內(nèi)容非常詳細(xì),感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。
Mysql數(shù)據(jù)庫無法啟動,具體如下:
[root@testdb var]#service mysql start
Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql/mysql.pid).
初看,好像是權(quán)限問題,但仔細(xì)檢查權(quán)限,沒有發(fā)現(xià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ā)現(xiàn)如下:
InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 3970243421 and the end 3970243072.
事務(wù)日志有斷檔,估計(jì)也找不出來了,基于此,只能把原來的事務(wù)日志ib_logfile0和ib_logfile1重命名或者刪除掉,然后再重新啟動
[root@testdb var]#service mysql start Starting MySQL...SUCCESS!
關(guān)于如何解決mysql因?yàn)槭聞?wù)日志問題無法啟動的問題就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。