当把本地数据库作为服务器的时候,如果你发现client无法链接到你的数据库服务器,那么有可能是:

1. 当前account没有远程链接权限,如何开通?

 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
 FLUSH PRIVILEGES;

2. 防火墙屏蔽了远程链接请求,怎么解决?

netsh advfirewall firewall add rule name="MySQL Server" action=allow protocol=TCP dir=in localport=3306

Reference:

http://stackoverflow.com/questions/21627421/mysql-unable-to-connect-with-remote-server

http://stackoverflow.com/questions/14779104/how-to-allow-remote-connection-to-mysql

 

相关文章:

  • 2021-12-26
  • 2021-06-21
  • 2021-07-01
  • 2021-07-19
  • 2021-12-02
  • 2022-02-23
  • 2022-12-23
  • 2021-10-18
猜你喜欢
  • 2021-09-10
  • 2021-06-25
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-05-07
相关资源
相似解决方案