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 stop
edit
my.cnf
skip grant privileges usersudo vi /applications/xampp/xamppfiles/etc/my.cnf
add
skip-grant-tables
@ end of[mysqld]
sectionrestart mysql server
sudo /applications/xampp/xamppfiles/bin/mysql.server restart
connect mysql server (username , password not required)
mysql
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
Post a Comment