1.下载源:
#wget http://repo.MysqL.com/MysqL-community-release-el7-5.noarch.rpm
2.安装包
#sudo rpm -ivh MysqL-community-release-el7-5.noarch.rpm
3.安装MysqL
#sudo yum install MysqL-server
4.更改权限
# sudo chown -R MysqL:MysqL /var/lib/MysqL
5.登陆MysqL
#MysqL -u root
MysqL >MysqL > GRANT ALL PRIVILEGES ON *.* TO 'LoginName'@'%' IDENTIFIED BY 'LoginPwd' WITH GRANT OPTION;