How to grant disabled permissions on a user in mysql -
for testing, had unchecked insert, update , delete permissions on data in phpmyadmin.
now when tried enable permissions again, getting follow error:
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:
stop mysql server in xampp
sudo /applications/xampp/xamppfiles/bin/mysql.server stopedit
my.cnfskip grant privileges usersudo vi /applications/xampp/xamppfiles/etc/my.cnfadd
skip-grant-tables@ end of[mysqld]sectionrestart mysql server
sudo /applications/xampp/xamppfiles/bin/mysql.server restartconnect mysql server (username , password not required)
mysqltype following commands respectively:
update mysql.user set grant_priv='y', super_priv='y' user='root';flush privileges;grant on *.* 'root'@'localhost';
now go :)


Comments
Post a Comment