linux Mysql 安装
一、wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
二、sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
三、yum install -y mysql-server mysql mysql-devel
四、systemctl start mysqld.service
五、systemctl status mysqld.service
六、mysql> SET PASSWORD FOR 'root'@'localhost'=PASSWORD('root123');
七、 create database demo;
八、 show databases;
九、update user set host ='%' where user ='root';
十、 flush privileges;