先启动firewall防火墙:
service firewalld start
打开3306端口:
firewall-cmd --add-port=3306/tcp --permanent
mysql授权root账户远程访问:
update mysql.user set Host=‘%‘ where HOST=‘localhost‘ and User=‘root‘;
flush privileges;
重启mysql服务器:
service mysqld restart
搞定收工!!!!
抱怨一句,今天上海好热啊
时间: 2024-11-06 03:50:02