Typically when installing MySQL with Yum, CENTOS6 installs the mariadb with the old MySQL version that accompanies the OS release, CENTOS7 installed by default. Before installing the latest MySQL version, you have to go to Oracle 's MySQL home page, download the latest release version, and then compile the installation, now it doesn't have to be so troublesome, the Yum Library has the latest MySQL version, You can install the latest MySQL community GA version with Yum.
Platform: Centos7 x86_64 Minimized installation
1, install the Yum source
Rhel7/centos7/oracle linux7:
RPM-UVH http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
Rhel6/centos6/oracle linux6:
RPM-UVH http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
Yum List | grep MySQL to view the MySQL version available for download
2,yum installing MySQL
Yum Install Mysql-community-server
During the installation process, I saw the CENTOS7 brought mariadb to the kill.
3, start the service
Systemctl Enable Mysqld.service Boot
Systemctl Start Mysqld.service Open service
4, simple initialization
Mysql_secure_installation
After installing the root password is empty, directly enter, follow the prompts to set up
Yum installs the latest MySQL