1. Modify the yum source
Given the use of foreign sources of Yum, more slowly, so think of the foreign Yum yum source instead of domestic sources, more choice of where to use Ali cloud sources. Specific modification methods can refer to this connection
2. Online install mysql
By yum online mysql, the specific operation command as follows.
yum clean all
yum install mysql-server
3.mysql service starts and test
1) View mysql service status
service mysqld status
2) Start mysql service
service mysqld start
3) set the mysql password
/usr/bin/mysqladmin -u root password '123456'
4) connecting mysql
mysql -uroot -p 123456
a) Check Database
show databases;
mysql
test
b) Check Database
use test;
c) the list of tables
show tables;