I tried to execute this stored procedure:
DELIMITER |
DROP PROCEDURE IF EXISTS HelloWorld|
CREATE PROCEDURE HelloWorld()
BEGIN
UPDATE sites_niche SET `short_review` = REPLACE(`short_review`, '’',"'");
END |
DELIMITER ;
However, it tells me this:
Access denied for user ‘bestcam728’@’%’ to database ‘bestcamdir_main’
The problem is that I am already logged into the database.. that error prevents me from creating stored procedures… how do I overcome this?
Also there is a problem of not being able to create new users
Run
SHOW GRANTScommand to view all privileges user ‘bestcam728’@’%’ has.To grant privileges to ‘bestcam728’@’%’ connect as root and give privileges you need using GRANT statement. It seems that CREATE or CREATE ROUTINE privilege is missing. You can grant these privileges globally or for specific database –
Then reconnect as ‘bestcam728’@’%’ and try to create procedure again.