grant [权限] on [数据库名].[表命] to [‘用户命‘]@[‘web服务器的ip地址‘] identified by [‘密码‘];
GRANT ALL ON *.* TO admin@‘localhost‘ IDENTIFIED BY ‘admin‘ WITH GRANT OPTION;
grant select,update,insert,delete on *.* to ‘admin‘@‘192.168.0.2‘ identified by ‘123456‘;
本文出自 “享受编程” 博客,请务必保留此出处http://kure6.blog.51cto.com/2398286/1624093
原文:http://kure6.blog.51cto.com/2398286/1624093