【实用小技巧】Access denied for user 'root'@'localhost' 报错解决 到mysql安装目录修改my.ini文件,在文件末尾追加一句 skip-grant-tables 然后重启mysql服务即可