授予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介绍

 

责任编辑:段燃 来源: 互联网
相关推荐

2010-10-12 16:02:00

MySQL用户权限

2010-10-12 15:54:30

MySQL用户权限

2021-12-27 10:56:10

MySQL数据库命令

2010-10-14 09:52:35

MySQL命令行

2009-11-02 15:15:43

Oracle授予用户权

2015-06-29 15:12:09

ORACLE账号权限用户权限

2014-10-24 09:55:12

FedoraDocker

2023-12-20 10:14:24

2019-02-28 09:30:04

Ubuntusudo命令

2010-10-12 16:21:49

MySQL用户权限

2010-05-13 14:30:48

IIS服务器

2021-02-04 07:06:43

苹果macOS漏洞

2020-11-26 06:30:53

MySQL数据权限

2023-03-20 07:48:03

2010-10-14 10:43:03

MySQL用户权限

2010-06-07 21:01:45

管理员权限GPO

2019-06-25 15:18:54

MySQL数据库表层

2010-10-12 16:35:05

MySQL用户权限

2022-01-17 13:34:45

MySQLLinux数据库

2010-10-14 11:25:39

点赞
收藏

51CTO技术栈公众号