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