因mysql版本不对,导入历史数据后无法重启mysql,提示:
[ERROR] Fatal error: mysql.user table is damaged. Please run mysql_upgrade.
2020-11-02T06:11:04.518853Z 0 [ERROR] Fatal error: Failed to initialize ACL/grant/time zones structures or failed to remove temporary table files.
2020-11-02T06:11:04.518915Z 0 [ERROR] Aborting
于是卸载,但发现安装后仍旧无法启动/etc/init.d/mysql执行后无响应,3306端口并未开启监听,于是执行如下命令,
清除残余的配置文件:
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
再次安装,一切顺利。