由于数据库的要求,需要将mysql8.0删除后,再安装mysql5.7的数据库,有时间会出现无法启动新安装的mysql的问题
[FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4800!
2019-12-10 22:37:46 0x7f416f5ff780 InnoDB: Assertion failure in thread 139919018162048 in file ut0ut.cc line 918
因此一定要按如下步骤进行
1、删除mysql8.0
yum remove mysql
2、删除共享Lib库,这一步很关键,一定要这里执行呀
rm -R /var/lib/mysql
3、安装mysql5.7
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm yum -y install mysql-community-server
正常启动即可。