Quantcast
Channel: PayMoon贝明实验室
Viewing all articles
Browse latest Browse all 130

Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server

$
0
0
添加其它root级别用户访问Mysql 描述: Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server - Stack Overflow http://stackoverflow.com/questions/1559955/host-xxx-xx-xxx-xxx-is-not-allowed-to-connect-to-this-mysql-server 原因: If you cannot figure out why you get Access denied, remove from the user table all entries that have Host values containing wildcards (entries that contain '%' or '_' characters). A very common error is to insert a new entry with Host='%' and User='some_user', thinking that this allows you to specify localhost to connect from the same machine. The reason that this does not work is that the default privileges include an entry with Host='localhost' and User=''. Because that entry has a Host value 'localhost' that is more specific than '%', it is used in preference to the new entry when connecting from localhost! The correct procedure is to insert a second entry with Host='localhost' and User='some_user', or to delete the entry with Host='localhost' and User=''. After deleting the entry, remember to issue a FLUSH PRIVILEGES statement to reload the grant tables. See also Section 5.4.4, “Access Control, Stage 1: Connection Verification”. 解决: [crayon-5727fa7f5ab58633763515/]  

Viewing all articles
Browse latest Browse all 130

Trending Articles