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.....

Comments

  1. GRANT SELECT gives permission to run SELECT queries. You need GRANT CREATE PROCEDURE since that's the command you're trying to run.

    ReplyDelete
  2. GRANT SELECT gives permission to run SELECT queries. You need GRANT CREATE PROCEDURE since that's the command you're trying to run.

    ReplyDelete

Post a Comment

Popular posts from this blog

How do i Increase the capacity of the Eclipse Output console?

An internal error occurred during: "Building workspace". Java heap space

How to convert the Math Number to Words in Java?