- grant all privileges on *.* to 'userName'@'%' identified by 'password' WITH GRANT OPTION;
- FLUSH PRIVILEGES;
- /**
- on *.* 是 on 数据库.表 @% 是任意的 @ip 可以具体某个ip
- **/
- --该片段来自于http://www.codesnippet.cn/detail/1903201511908.html
来源: http://www.codesnippet.cn/detail/1903201511908.html