Query : How to give privileges to create a procedure in Mysql?
Please Help..
Am using MySQL database
While creating Procedure
DELIMITER $$
CREATE PROCEDURE getStatus()
BEGIN
SELECT COUNT(*) FROM status_table;
END $$
--------------------------------------------------
I received this Error
Query: Create procedure getStatus() Begin Select count(*) from status_table; End
Error Code: 1044
Access denied for user 'd5'@'192.168.10.65' to database 'onlinecard'
Execution Time : 0 sec
Transfer Time : 0 sec
Total Time : 0.005 sec
-----------------------------------------------------------------
How can i give grant permission to create procedure ?
If any one knows means tell me
From the morning itself i tried with few queries...
That are listed below:
GRANT SELECT ON mysql.proc TO 'Username'@'IPAddress';
If any one knows tell me.....
Thanks in advance.....
Am using MySQL database
While creating Procedure
DELIMITER $$
CREATE PROCEDURE getStatus()
BEGIN
SELECT COUNT(*) FROM status_table;
END $$
--------------------------------------------------
I received this Error
Query: Create procedure getStatus() Begin Select count(*) from status_table; End
Error Code: 1044
Access denied for user 'd5'@'192.168.10.65' to database 'onlinecard'
Execution Time : 0 sec
Transfer Time : 0 sec
Total Time : 0.005 sec
-----------------------------------------------------------------
How can i give grant permission to create procedure ?
If any one knows means tell me
From the morning itself i tried with few queries...
That are listed below:
GRANT SELECT ON mysql.proc TO 'Username'@'IPAddress';
If any one knows tell me.....
Thanks in advance.....
GRANT SELECT gives permission to run SELECT queries. You need GRANT CREATE PROCEDURE since that's the command you're trying to run.
ReplyDeleteGRANT SELECT gives permission to run SELECT queries. You need GRANT CREATE PROCEDURE since that's the command you're trying to run.
ReplyDelete