简体   繁体   中英

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.
  • I've tried changing to the bind to 0.0.0.0
  • I've made sure that port 3306 is not blocked by the firewall
  • I've added a privilege user from the requesting IP and Port and granted full access to that user.

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;

The database was set up using 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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