mysql的服务端[192.168.25.136]

1,在远程访问之前需先配置防火墙  service iptables stop (不推荐,可配置开通3306端口)

2,授权

mysql> grant all on wordpress.* to wordpress@'192.168.25.%' identified by 'root';

mysql>select host,user from user; 【多出1条远程登录用户记录】

mysql>flush privileges;(刷新)

Linux下的Mysql的远程访问

 

mysql的客户端[192.168.25.144]

mysql  -h 192.168.25.136  -uroot -proot

相关文章:

  • 2022-01-26
  • 2022-01-14
  • 2022-01-28
  • 2022-01-02
  • 2021-11-29
  • 2022-01-05
猜你喜欢
  • 2022-01-03
  • 2022-01-25
  • 2021-06-10
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-12-01
相关资源
相似解决方案