#创建账户
create user ‘root’@‘172.1.1.2’ identified by ‘password’
#赋予权限,
grant all privileges on . to ‘root’@‘172.1.1.2’ with grant option
创建账户
create user ‘用户名’@‘访问主机’ identified by ‘密码’;
赋予权限
grant 权限列表 on 数据库 to ‘用户名’@‘访问主机’ ;
with grant option这个选项表示该用户可以将自己拥有的权限授权给别人