程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> 授予MySQL用戶權限的語句

授予MySQL用戶權限的語句

編輯:MySQL綜合教程

下面為您介紹的語句都是用於授予MySQL用戶權限,這些語句可以授予數據庫開發人員,創建表、索引、視圖、存儲過程、函數。。。等MySQL用戶權限。

grant 創建、修改、刪除 MySQL 數據表結構權限。

grant create on testdb.* to developer@'192.168.0.%';
grant alter  on testdb.* to developer@'192.168.0.%';
grant drop   on testdb.* to developer@'192.168.0.%';

grant 操作 MySQL 外鍵權限。

grant references on testdb.* to developer@'192.168.0.%';

grant 操作 MySQL 臨時表權限。

grant create temporary tables on testdb.* to developer@'192.168.0.%';

grant 操作 MySQL 索引權限。

grant index on  testdb.* to developer@'192.168.0.%';

grant 操作 MySQL 視圖、查看視圖源代碼權限。

grant create view on testdb.* to developer@'192.168.0.%';
grant show   view on testdb.* to developer@'192.168.0.%';

grant 操作 MySQL 存儲過程、函數權限。

grant create routine on testdb.* to developer@'192.168.0.%';  -- now, can show procedure status
grant alter  routine on testdb.* to developer@'192.168.0.%';  -- now, you can drop a procedure
grant execute        on testdb.* to developer@'192.168.0.%';

以上就是MySQL用戶權限的語句介紹。

mysql索引的不足

MySQL連接數據庫的命令

MySql連接字符串的說明

java操作mysql存儲過程示例

mysql觸發器new old介紹

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved