加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

windows mysql提示:1045 access denied for user'root'@'localhost' using password yes

(2011-07-05 12:48:27)
标签:

数据库

提示

工作组

操作

f3

1045

windows

mysql

root

localhost

acess

it

分类: 网络----数据库
    一大早打开Navicat Lite for MySQL客户端,提示1045 access denied for user ’root’@’localhost’ using password yes,太不给力了,网上搜了很多资料,最终问题得以解决,下面将详细的解决过程分享给大家,希望遇到同样问题的同胞,少走弯路:


    1、打开DOS进入mysql下bin目录:本人:C:\Program Files\MySQL\MySQL Server 5.1\bin
    2、停止mysql服务,net stop  mysql
    3、在
C:\Program Files\MySQL\MySQL Server 5.1\bin后面输入:mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" --console --skip-grant-tables
    具体操作如下图:


http://s16/middle/521a28baxa74ba7fe0d4f&690mysql提示:1045 access denied for user'root'@'localhost' using password yes" TITLE="windows mysql提示:1045 access denied for user'root'@'localhost' using password yes" />

    4、重新打开一个DOS窗口,在C:\Program Files\MySQL\MySQL Server 5.1\bin后面输入:mysql -root  -p
    5、提示输入密码,在Enter后面输入密码,进入mysql>
    6、在mysql>下输入:
    mysql>update ssh set password=PASSWORD('newpassword') where USER='root'
    mysql>FLUSH PRIVILEGES;
    mysql>quit
    其中,ssh为数据库名称,改为自己的即可,若有多个数据库可多次update操作即可。

    具体操作如下图所示:http://s7/middle/521a28baxa74b9f3df956&690mysql提示:1045 access denied for user'root'@'localhost' using password yes" TITLE="windows mysql提示:1045 access denied for user'root'@'localhost' using password yes" />



本站:奋斗工作组提供,多谢支持!

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有