Centos7安装mysql5.6

wget http://repo.mysql.com/yum/mysql-5.6-community/el/7/x86_64//mysql-community-release-el7-5.noarch.rpm
rpm -Uvh mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server
systemctl start mysql
systemctl status mysql
mysql -u root
use mysql;
update user set password=PASSWORD("root") where User='root';
update user set host='%' where Host='localhost' and User='root';
flush privileges;

打赏

发布者

发表评论

电子邮件地址不会被公开。 必填项已用*标注