MySQL出现Access denied for user ‘root’@’localhost’ (using password:YES)时间:2023-03-08 19:47:45 连接时MySQL出现了下面的错误: Access denied for user ‘root’@’localhost’ (using password:YES) 解决的办法是先停止MySQL服务,在my.ini文件的最下面加入一行: skip-grant-tables 再启动MySQL服务,就可以了。