所报错误:
ERROR 1045 (28000): Access denied for user 'root'@'localhost'
修改密码过程如下
c:\>sc stop mysql
c:\>mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server 5.0\my.ini" --console --skip-grant-tables
重新开一个cmd
c:\>mysql -uroot -p
enter password: <- 回车
mysql> use mysql;
mysql>UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql>FLUSH PRIVILEGES;
mysql>quit
联系客服