mysql权限

  • 开启远程连接权限
grant all on *.* to root@'%' indentified by 'passwd' grant select, insert, update, delete on *.* to root @localhost identified by 'passwd'
  • 查看权限
show grants for root; show grants for root@'localhost'; select user, host, select_priv from mysql.user;
  • 新增用户
create user suren @localhost identified by 'suren'
  • 删除用户
drop user suren  

你可能感兴趣的:(mysql权限)