Home  >  Article  >  Database  >  Host '127.0.0.1' is not allowed to connect to this MySQL server

Host '127.0.0.1' is not allowed to connect to this MySQL server

PHP中文网
PHP中文网Original
2017-06-23 09:01:351339browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn