MySQL is not allowed to connect remotely [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Remote mysql connection I've made an C++ app, that requires connection to MySQL db, the error others get when connecting to my MySQL server is: Host is not allowed to connect to the MySQL. I've been reading some solutions on that, but they require you to have the users ip, how could I allow connection from ANY pc? 回答1: Create a user with a wildcard (%) as the host name. Here is an example that creates a user