Error: Host '127.0.0.1' is not allowed to connect to this MySQL server
General reason: The parameter is set in the configuration file my.ini of the MySQL database: skip-name-resolve
As a result, "localhost" cannot be used to connect to the database.
Solution: Comment out: #skip-name-resolve
Commenting out has a slight impact on the database settings, but the impact is not significant.
The above is the detailed content of Host '127.0.0.1' is not allowed to connect to this MySQL server. For more information, please follow other related articles on the PHP Chinese website!