How to grant disabled permissions on a user in mysql -


for testing, had unchecked insert, update , delete permissions on data in phpmyadmin.

previleges

now when tried enable permissions again, getting follow error:

permission denied

can please guide me how enable privileges again?

i facing problem in xampp on mac. there many solutions provided in various posts, no 1 fixing problem. updating answer, may else fix problem. steps followed are:

  1. stop mysql server in xampp sudo /applications/xampp/xamppfiles/bin/mysql.server stop

  2. edit my.cnf skip grant privileges user sudo vi /applications/xampp/xamppfiles/etc/my.cnf

  3. add skip-grant-tables @ end of [mysqld] section

  4. restart mysql server sudo /applications/xampp/xamppfiles/bin/mysql.server restart

  5. connect mysql server (username , password not required) mysql

  6. type following commands respectively:

    update mysql.user set grant_priv='y', super_priv='y' user='root';

    flush privileges;

    grant on *.* 'root'@'localhost';

now go :)


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -