该错误只在Windows系统上出现,Linux下好像好没有,据说这个错误已经存在n年了,有人extremely dispointed that it still exists here in 2009!错误的原因更令人抓狂,那就是mysql server instance config wizard根本没有为你设密码,于是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;
# Now you should see that u have 3 entries
+-----------------------------+
| user | host | password |
+-----------------------------+
| root | localhost | |
| root | 127.0.0.1 | |
| | localhost | |
+-----------------------------+
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跑一遍了。PS: 国内和国外的水平真是差得远,国内的砖家们只会告诉你是和以前安装的mysql版本冲突了,把它卸干净,再把配置啊注册表啊都删干净(简直就是既然我不知道是哪错了那就是全错了),再重装。而问题根本没解决。。。。。。人国外的却能一针见血地指出问题之所在。Ubuntu下用C语言访问MySQL数据库Linux下让PHP支持MSSQL相关资讯 MySQL安装
- MySQL安装、配置、使用及JDBC链接 (02/23/2015 12:42:19)
- Linux下MySQL默认安装目录和常用命 (10/29/2014 19:07:55)
- MySQL自动化运维之安装篇 (09/21/2014 10:00:17)
| - Linux编译安装MySQL (02/10/2015 19:49:03)
- CentOS 6.5 环境安装 MySQL 5.1 (09/22/2014 05:50:26)
- CentOS 6.4安装MySQL的过程中出现 (08/05/2014 06:40:47)
|
本文评论 查看全部评论 (1)
评论声明- 尊重网上道德,遵守中华人民共和国的各项有关法律法规
- 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
- 本站管理人员有权保留或删除其管辖留言中的任意内容
|