mysql数据库问题 遇到的数据库问题 1045
如果遇到这个问题: 错误代码 1045Access denied for user 'root'@'localhost' (using password:YES)解决办法:1先关闭mysql window下在你的mysql安装目录下 例如c:mysql2inmysql-nt stop;2 c:mysqlinmysql-nt --skip-grant-tables3 mysql -uroot 4 use mysql5 update user set password = password('新密码') where user='root' and host='localhost'6 flush privileges;7 c:mysqlinmysql-nt restart;如果在linux下把mysql-nt 换成mysqld_safe 唉 my