using c#

MySQL 1045错误的解决方法

09-11-11 16:05   View:326

问题类型:

MySQL 1045错误:

错误代码 1045

Access denied for user 'root'@'localhost' (using password:YES)


1045:不能连接数据库,用户名或密码错误

重新安装也依然报错。

解决办法:修改密码

1、停止MYSQL服务

2、新建CMD窗口,运行 mysqld --skip-grant-tables

3、新建CMD窗口, 运行 mysqladmin -u root flush-privileges password  123  (注:将root密码修改为123)

Feedback


  • No comments posted yet.
Title:
 
Name:
 
URL:

Comments:
 

Because of the cache,you may see your comments several minutes later.


Main Feeds

Contact Me Privacy

All Rights Reservered CnKker.Com 2006~2009 Powder By 龍天昌盛 QQ:256051