1.越权:
mysqld --user=mysql --skip-grant-tables --skip-networking &
2.刷新权限
mysql> GRANT ALL ON *.* TO 'gongzheng'@'%';
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
mysql> flush privileges;
Query OK, 0 rows affected (0.04 sec)
3.完成后杀掉mysqld,再重启 mysql