[英]Host is not allowed to connect to this MySql server
I am unable to connect to my server remotely. 我无法远程连接到服务器。
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.