19 / 09 / 18
CentOS7.x
yum install mysql
yum install mysql-devel
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server
service mysqld restart
mysql -u root
set password for 'root'@'localhost' =password('8sIjjbzAxWSsC65A');
mysql配置文件为/etc/my.cnf
default-character-set =utf8
mysql> grant all privileges on *.* to server@'%'identified by '8sIjjbzAxWSsC65A';
mysql>create user 'server'@'%' identified by '8sIjjbzAxWSsC65A';