centos安装使用mysql mini版

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
sudo yum install mysql-server
sudo chown -R root:root /var/lib/mysql
service mysqld restart
mysqladmin -u root password '123456'
# mysql
grant all privileges on *.* to root@"%" identified by "123456";
本文总阅读量