0

When I tried this code:

SHOW GRANTS FOR 'secret'@'localhost';

this is the result:

Grants for secret@localhost
GRANT USAGE ON *.* TO 'secret'@'localhost' IDENTIFIED BY PASSWORD 'secretpass'
GRANT ALL PRIVILEGES ON `secret\_dbx`.* TO 'secret'@'localhost'
GRANT ALL PRIVILEGES ON `secret\_db1x`.* TO 'secret'@'localhost'

But when i want to set the event_scheduler on

SET GLOBAL event_scheduler = "ON"

this error show :

 #1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation 

then tried this code :

 GRANT SUPER ON *.* TO secret@'localhost' IDENTIFIED BY 'secretpass';
 FLUSH PRIVILEGES;

And then the error:

 Access denied for user 'secret'@'localhost' (using password: YES)

I know I'm using root , I used the username and password to access the control panel of my domain.

2 Answers2

0

Check this docs. All the permissions are given here.

I think you need to code like:

CREATE USER 'secret_user@localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'secret_user@localhost';
FLUSH PRIVILEGES;

For more information check here.

Community
  • 1
  • 1
Avinash Babu
  • 6,171
  • 3
  • 21
  • 26
-2

found the answer ... and sadly I have to work on cron jobs because i shared a hosting ... now I hate re-seller hosting