mysql root????????????????????????????????????????????????-??????-????????????-?????????
???mysql??????????????????????????????????????????????????????????????????????????????????????????????????????????????????phpmyadmin????????????mysql????????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????mysqld_safe --skip-grant-tables --skip-networking &?????????????????????????????????????????????????????????????????????????????????????????????????????????mysql??????????????????user???????????????????????????%??????????????????Host???????????????localhost??????????????????
????????????
mysqld_safe --skip-grant-tables --skip-networking &
mysql -uroot -p
??????????????????????????????
use mysql;
show tables;
select Host from user where User='root';
Update user set Host='localhost' where Host='%';
flush privileges???
service mysqld restart
-----------------------------
??????????????????????????????????????????????????????????????????????????????--skip-grant-tables??????grant??????????????????
------------????????????????????????????????????root????????????????????????????????????????????????????????????????????????????????????extmail???extman???????????????????????????????????????????????????????????????????????????????????????skip-grant-tables?????????????????????????????????????????????????????????????????????-----??????????????????????????????????????????????????????????????????????????????????????????????????????????????????
最后更新:2017-11-06 13:03:42