第一步将对应的mysql的rpm都卸载,将相关的mysql文件夹删除干净
第二步,安装rpm包
第三步,查看/etc/my.cnf
第四步mysqld --initialize,查看/var/log/mysqld.log,没问题,密码生成成功
第五步 chown mysql:mysql /var/lib/mysql -R 、systemctl start mysqld.service 报错 mysql:Job for mysqld.service failed because the control process exited with error 查看错误
第六步,mysql没有对应日志输出,用systemctl status mysqld查看
多次重装都报一样的错