Home > Database > Mysql Tutorial > 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中文网
Release: 2017-06-23 09:01:35
Original
1402 people have browsed it

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!

Related labels:
Statement of this Website
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
Latest Articles by Author
Latest Issues
localhost and 127.0.0.1
From 1970-01-01 08:00:00
0
0
0
127.0.0.1 is not accessible
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template