Check for the MySQL database
rpm -qa | grep mysql
So, with the rpm -e command or uninstall command rpm -e --nodeps
rpm -e mysql # ordinary delete mode
rpm -e --nodeps mysql # powerful delete mode, if you use the above command to delete, suggesting other files rely on, use the delete command can be strong
After deleting and then finished by rpm -qa | grep mysql command to see if mysql has been uninstalled successfully!
yum repository download MySQL official website
wget -c http://dev.mysql.com/get/mysql57-community-release-el6-10.noarch.rpm
Local install the downloaded rpm package
yum localinstall mysql57-community-release-el6-10.noarch.rpm
View available installation package
yum repolist enabled | grep mysql
Gcc installed before installation of all packages, to prevent error [Errno -1] Package does not match intended download
yum install gcc*
Install mysql
yum install -y mysql-community-server
Start mysql
Reference article from:
(1)https://www.jb51.net/article/112356.htm
(2) How to find yum source Mysql official website: https://blog.csdn.net/Geek_ymv/article/details/95234977