查看用户当前权限

  show grants;

查看其他 MySQL 用户权限:
  show grants for '<username>'@'<host>';

授权

  grant <privileges> on <databasename.tablename> to '<username>'@'<host>' identified by '<123>';

  identified by非必须。

撤销权限

  revoke <privileges> on <databasename.tablename> from '<username>'@'<host>';

 

 

privileges:

全部权限:all privileges

其他权限参考:

https://www.cnblogs.com/fslnet/p/3143344.html

http://blog.csdn.net/wulantian/article/details/38230635

相关文章:

  • 2022-02-12
  • 2022-12-23
  • 2021-06-23
  • 2022-01-07
  • 2022-01-02
  • 2021-12-05
  • 2021-12-05
  • 2021-12-22
猜你喜欢
  • 2021-12-22
  • 2021-09-19
  • 2021-12-01
  • 2022-12-23
  • 2022-02-10
  • 2021-10-04
相关资源
相似解决方案