简体   繁体   English

主机不允许连接到该MySql服务器

[英]Host is not allowed to connect to this MySql server

I am unable to connect to my server remotely. 我无法远程连接到服务器。

  • I've tried changing the bind-address to the IP address. 我尝试将绑定地址更改为IP地址。
  • I've tried changing to the bind to 0.0.0.0 我尝试将绑定更改为0.0.0.0
  • I've made sure that port 3306 is not blocked by the firewall 我确保端口3306未被防火墙阻止
  • I've added a privilege user from the requesting IP and Port and granted full access to that user. 我已经从请求的IP和端口中添加了一个特权用户,并授予了对该用户的完全访问权限。

None of the above changes seem to have done the trick. 上述变化似乎都没有解决问题。

The syntax I am using for the connection string is Server=;Database=dbname;Uid=userid;Pwd=pwd; 我用于连接字符串的语法是Server =; Database = dbname; Uid = userid; Pwd = pwd;

The database was set up using Xammp phpyadmin 使用Xammp phpyadmin设置数据库

You may need to give your username remote access to the database. 您可能需要授予用户名远程访问数据库的权限。 I forget the exact steps, but I know it is under the user account options when you setup the account initially as well as when you edit it. 我忘记了确切的步骤,但是我知道在初始设置和编辑帐户时,它位于用户帐户选项下。 Make sure the user can connect from all hosts rather than just localhost. 确保用户可以从所有主机而不是仅从本地主机连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM