赞
踩
sudo yum -y update
sudo yum -y install vim net-tools wget gcc make cmake lrzsz
sudo yum -y install https://repo.mysql.com//mysql80-community-release-el8-7.noarch.rpm
sudo yum -y install mysql-community-server
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo systemctl enable mysqld
sudo grep 'temporary password' /var/log/mysqld.log
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Lihaozhe!!@@1122';
use mysql
select host from user where user = 'root';
update user set host = '%' where user = 'root';
flush privileges;
到这一步,这个报错还没解决,我们去看看防火墙状态
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。