my.cnf改加上skip-grant-tables
然后在命令行执行 mysql 进入mysql客户端,然后执行如下sql
update mysq.user set Select_prev='Y',Update_prev='Y' where User='root';
然后my.cnf注释skip-grant-tables 重启mysql
然后进入phpmyadmin里,在mysql.user里勾上root的全部权限
my.cnf改加上skip-grant-tables
然后在命令行执行 mysql 进入mysql客户端,然后执行如下sql
update mysq.user set Select_prev='Y',Update_prev='Y' where User='root';
然后my.cnf注释skip-grant-tables 重启mysql
然后进入phpmyadmin里,在mysql.user里勾上root的全部权限