时间:2021-07-01 10:21:17 帮助过:18人阅读
create user 'username'@'host' IDENTIFIED BY 'PASSWORD'
给指定用户授权
grant all on DBName.* to 'username'@'host'
刷新权限
flush privileges;
查看用户权限
show grants for 'user'@'host'
换行查询信息,主要针对多行
select * from user \G