1, open the browser search mysql
2, click on the navigation bar "download"
3. Click on the drop-down "Community Edition"
4, looking for YUM library
5, download files yumrpm
6, unloading system comes mariadb
7、安装.rpm
[root@test tools]# rpm -ivh mysql80-community-release-el7-3.noarch.rpm
8、yum安装
[root@test tools]# yum install mysql-server -y
9, initialization MySQL
[root @ the Test Tools] # mysqld --initialize
10, to execute permissions
[root @ test tools] # chown -R mysql: mysql / var / lib / mysql
11, modify the configuration file is no password to log
[root @ test tools] # vi /etc/my.cnf
bottom added: skip-grant-tables
12, start MySQL and log