I want to create following schedule in Mysql. it showing error: "Error Code: 1044. Access denied for user 'root'@'%' to database 'xxxxxABC'"
CREATE EVENT resetAccount
ON SCHEDULE EVERY 1 HOUR
STARTS CURRENT_TIMESTAMP
DO
UPDATE user_master SET AccountNonLocked = 1 WHERE AccountNonLocked = 0
and username in
(select username from user_attempts where last_modified between DATE_SUB(now(),INTERVAL 24 HOUR) and DATE_SUB(now(),INTERVAL 23 HOUR)
);
I checked all possible solutions mention in previous stackoverflow comments. I checked PRIVILEGES also for user and run following command also. "SELECT host,user,password,Grant_priv,Super_priv FROM mysql.user;"
It shows following output enter image description here
Also i run "SELECT USER(),CURRENT_USER();" output: enter image description here
Now, Why i am getting this error as user has all the privileges.