该错误只在windows系统上出现,据说这个错误已经存在n年了,有人extremely dispointed that it still exists here in 2009!
错误的原因就是mysql server instance config wizard根本没有为你设密码,于是root密码是空
(也许你把密码弄错了,可以使用root用户与安装时设置的密码登录尝试)
解决办法:
I clicked Skip on the dialog that states the Error 1045...Then cancelled the "MySQL Server Instance Config Wizard"Now...
Open a command prompt type "mysql -u root -p" then hit enter again when it requests a password.You should now have access to the mysql monitor...type the following at the prompts...
mysql>use mysql
mysql>select user, host, password from user;
mysql> delete from user where host="localhost" and user="";
mysql> update user set password=password("xxxx") where user="root";
mysql> flush tables;
mysql> flush privileges;
mysql> quit
Now the mysql table should be updated and everything fixed.Try it out...
然后就可以用config wizard跑一遍了。。。
有所改动
找准问题所在才是最重要的