解決Mysql 8 在kali下無法啓動

首先查看

cat /var/log/mysql/error.log

然後發現

Can’t find error-message file ‘/usr/share/mysql/errmsg.sys’. Check error-message file location and ‘lc-messages-dir’ configuration directive.

解決辦法爲找到

vim /etc/mysql/mariadb.conf.d/50-server.cnf

lc-messages-dir = /usr/share/mysql

改爲

lc-messages-dir = /usr/share/mysql-8.0

這個錯誤解決了,然後發現

[InnoDB] InnoDB: Unsupported redo log format (0). The redo log was created before MySQL 5.7.9

find / -name *ib_log*

找到了

/var/lib/mysql/ib_logfile0
/var/lib/mysql/ib_logfile1

刪掉

然後出現

Cannot upgrade server earlier than 5.7 to 8.0

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