当前位置:网站首页>SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server

SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server

2022-07-07 05:42:00 "Drink and sing low"

The error report is as follows :

 Please add a picture description

** The reasons causing :** Due to the construction docker Environmental Science , Put the project in docker Inside the environment , And host mysql Isolated 
			 So when docker Project access mysql when , The nature of the visit is : LAN access 
 Solution : mysql LAN access ,
		 Need to change its own library user Table fields User by root Of host field value 
		 The process is as follows :

One 、Navicat operation
 Insert picture description here

 Please add a picture description
Two 、 Refresh mysql jurisdiction :

 After making a permission change to the user , Be sure to reload the permissions , Write permission information from memory to database .

 Please add a picture description

原网站

版权声明
本文为["Drink and sing low"]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130733166753.html