Solve that Mysql 8 cannot be started under kali

Check out first

cat /var/log/mysql/error.log

and then found

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

The solution is to find

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

Bundle

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

change to

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

This bug was resolved, then found

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

Find

find / -name *ib_log*

found it

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

delete

then appear

Cannot upgrade server earlier than 5.7 to 8.0

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324706662&siteId=291194637