1. 程式人生 > >MySQL - 權限

MySQL - 權限

com ble blog use 授權 lan mysql ase ant

查看用戶當前權限

  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

MySQL - 權限