LAMP配置MYsql问题-1045

系统 Windows
在使用操作系统windows安装mysql时,会遇到Error 1045(28000) Access Denied for user 'root'@'localhost' (Using password:NO)错误。该如何解决呢?

  LAMP 配置MYsql 1045问题:

  在windows操作系统安装mysql数据库,碰到Error 1045(28000) Access Denied for user 'root'@'localhost' (Using password:NO)错误时,你需要重新设置密码。

  LAMP 配置MYsql问题-1045的具体方法是:

  1.先在安装目录找到my.ini配置文件,打开配置文件

  2.找到[mysqld]一行,在下面添加skip-grant-tables后保存该文件,重新启mysql动服务;

  windows7下装了mysql5.1,error1045,删除实例后服务就启动不了,试了很多方法都不能解决,***重装了个6.0的beta,出现刚装5.1时的初始错误error 1045最终错误解决:

  1、mysql -u root

  2、use mysql

  3、update user set password=old_password('scf') where user='root' and host='localhost' ;

  4、FLUSH PRIVILEGES;

  这样Error 1045(28000) Access Denied for user 'root'@'localhost' (Using password:NO)错误1045就可以迎刃而解了!

【编辑推荐】

Ubuntu Server中LAMP下MySQL无法远程连接问题1130

Ubuntu Server中LAMP下MySQL无法远程连接问题10061

调优LAMP应用程序的5种简单方法:优化数据库

责任编辑:zhaolei 来源: CSDN
相关推荐

2011-03-09 10:10:11

2011-03-22 13:06:18

LAMPMysql

2011-03-11 13:58:51

2011-03-14 13:51:14

LAMP配置

2011-03-21 16:30:42

CentOSLAMP

2011-03-10 11:06:02

Ubuntu搭建LAMP

2011-03-11 16:42:38

Ubuntu安装LAMP

2011-03-23 11:14:47

LAMP配置

2011-03-21 10:15:07

LAMPLAMP安装LAMP配置

2011-03-14 10:21:25

LAMPMySQL远程连接

2011-03-09 15:13:00

UbuntuLAMP配置

2011-03-22 12:53:35

UbuntuLAMPApache

2011-03-11 10:27:45

UbuntuLAMP配置

2011-03-14 11:29:43

2011-03-14 10:36:21

LAMPMySQL远程连接

2011-03-22 13:20:38

LAMPFirefox中文乱码

2011-03-21 15:00:13

LAMPMySQL

2011-03-21 11:08:15

LAMPMySQL

2011-03-09 09:25:53

RedHatLinuxLAMP

2011-03-21 11:33:09

LAMPApache
点赞
收藏

51CTO技术栈公众号