grant all on *.* to lisi@'localhost' identified by '111111';
revoke all on *.* from lisi@'localhost';
grant all on ecshop.* to lisi@'192.168.1.%'
grant create,drop,insert,update,select on ecshop.goods to lisi@'192.168.1.%';
本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/articles/8681493.html