#切换数据库
use mysql;
#查询用户
select host,user,plugin from mysql.user;
#创建新用户、密码
create user 'Test'@'%' identified with mysql_native_password by 'Test@123456';

#授权
grant all privileges on 数据库名称.* to Test;

#查看用户权限
show grants for Test;

相关文章:

  • 2022-02-08
  • 2022-02-23
  • 2021-11-22
  • 2021-08-31
  • 2021-12-10
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2022-02-02
  • 2021-09-25
  • 2022-12-23
  • 2021-05-18
相关资源
相似解决方案