Mysql revoke reclaims permissions

REVOKE ALL PRIVILEGES ON *.* FROM developer;

FLUSH PRIVILEGES;

 

grant select, insert, update, delete on jyj_db.* to developer@'%' ;

FLUSH PRIVILEGES;

 

 

user explained:

The meaning of the value of the host column in the user table
%               matches all hosts
localhost     localhost will not be resolved into an IP address, connect directly through UNIXsocket
127.0.0.1       will be connected through TCP/IP protocol and can only be accessed locally;
::1                  ::1 is compatible with ipv6, which means 127.0.0.1 with ipv4

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326354695&siteId=291194637