创建用户(%表示随处可登录,localhost表示只能本地登录

create user 'username'@'%' identified by 'password';

 

分配权限

grant all privileges on tableName.* to 'username'@'%';

 

刷新权限

flush privileges;

 

如果报错ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

先执行flush privileges;再进行操作

相关文章:

  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2021-12-18
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-02-23
  • 2021-11-28
相关资源
相似解决方案