1. If the user has the create routine permission, he can create a procedure | function. 2. If a user creates a procedure | function, MySQL will automatically grant him the alter routine and execute permissions for the procedure | function. 3. Example: User root creates a spuser@'localhost' user and grants it the create procedure permission grant create routine on tempdb.* to spuser@'localhost' identified by '123456'; Create a routine with the spuser@'localhost' user delimiter go create procedure sp_hello_world() begin select 'hello world'; end go delimiter ; Check the permissions of spuser@'localhost' again mysql> show grants; +---------------------------------------------------------------------------------------------------------------+ | Grants for spuser@localhost | +---------------------------------------------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO 'spuser'@'localhost' IDENTIFIED BY PASSWORD '*6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9' | | GRANT CREATE ROUTINE ON `tempdb`.* TO 'spuser'@'localhost' | | GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `tempdb`.`sp_hello_world` TO 'spuser'@'localhost' | +---------------------------------------------------------------------------------------------------------------+ The above description of mysql create routine permissions is all I have to share with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to assign a public IP address to an instance in Linux
>>: Problems with using wangeditor rich text editing in Vue
Preface: Sometimes in a route, the main part is t...
In the case of complete separation of the front-e...
1. Overview The Promise object is a specification...
Table of contents App Update Process Rough flow c...
Navigation, small amount of data table, centered &...
This script can satisfy the operations of startin...
Here is a brief introduction to indexes: The purp...
In the process of learning CSS3, I found that man...
Table of contents Writing Background Project Desc...
The first solution is to push the image to a publ...
Mysql-connector-java driver version problem Since...
1. First, use springboot to build a simple dubbo ...
Preface: Mybatis special character processing, pr...
I recently read Yahoo's 34 Golden Rules and le...
Table of contents vue2.x vue3.x tiny-emitter plug...