7

I want to create a user in Mysql and I want that user to have permissions to create and run stored procedure. I using mysql workbench. Can you please guide me how to create user from workbench or through command-line with stored procedure permission. Workbench gives various options for permission as shown in below image, which options must be selected for have permission to create and run SP

enter image description here

4

1 回答 1

20

试试这个命令:

CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; 
GRANT ALTER ROUTINE, CREATE ROUTINE, EXECUTE ON *.* TO 'username'@'localhost' ; 
于 2012-11-08T06:09:07.090 回答