CentOS_7安装Mysql_5.6

前端之家收集整理的这篇文章主要介绍了CentOS_7安装Mysql_5.6前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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


6.切换到MysqL数据库

MysqL > use MysqL;


7.添加远程链接用胡

MysqL >MysqL > GRANT ALL PRIVILEGES ON *.* TO 'LoginName'@'%' IDENTIFIED BY 'LoginPwd' WITH GRANT OPTION;

原文链接:https://www.f2er.com/centos/380494.html

猜你在找的CentOS相关文章