先启动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

搞定收工!!!!

抱怨一句,今天上海好热啊

相关文章:

  • 2021-04-16
  • 2022-12-23
  • 2021-09-16
  • 2021-11-20
  • 2021-11-28
  • 2021-12-19
  • 2021-12-19
  • 2021-11-07
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
相关资源
相似解决方案