mysql登录遇到ERROR 1045问题解决方法
作者:
mysql登录时出现了错误:ERROR 1045: Access denied for user,究竟是什么原因呢?接下来为你详细介绍下,感兴趣的你可以参考下哈,或许可以帮助到你
在Windows系统中,mysql登录的时候出现了这样的错误:ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
从网上找了一些办法,终于得到了解决,现在记录一下具体的解决方法:
c:\>sc stop mysql
c:\>mysqld --defaults-file="C:\MySQL\MySQLServer6.0\my.ini" --console --skip-grant-tables
重新开一个cmd
c:\>mysql -uroot -p
enter password: <- 回车
mysql>UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql>FLUSH PRIVILEGES;
mysql>quit
从网上找了一些办法,终于得到了解决,现在记录一下具体的解决方法:
复制代码 代码如下:
c:\>sc stop mysql
c:\>mysqld --defaults-file="C:\MySQL\MySQLServer6.0\my.ini" --console --skip-grant-tables
重新开一个cmd
复制代码 代码如下:
c:\>mysql -uroot -p
enter password: <- 回车
mysql>UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql>FLUSH PRIVILEGES;
mysql>quit
您可能感兴趣的文章:
- MYSQL ERROR 1045 (28000): Access denied for user (using password: YES)问题的解决
- mysql登录报错提示:ERROR 1045 (28000)的解决方法
- MySQL ERROR 1045 (28000): Access denied for user ''root''@''localhost'' (using password: NO) 的原因分解决办法
- MySQL ERROR 1045 (28000) 错误的解决办法
- 解决mysql安装时出现error Nr.1045问题的方法
- 解决mysql ERROR 1045 (28000)-- Access denied for user问题
- mysql ERROR 1045 (28000)问题的解决方法
- 解决MySQL添加新用户-ERROR 1045 (28000)的问题
- 解决Mysql:ERROR 1045 (28000):Access denied for user ‘root‘@‘localhost‘ (using password: NO)的方法
- 全面分析MySQL ERROR 1045出现的原因及解决
- MySQL登录时出现ERROR 1045: Access denied for user ‘root‘@‘localhost‘ (using password: YES)无法打开解决方法汇总
- mysql 登录报错:ERROR 1045 (28000):Access denied for user ‘root‘@‘localhost‘ (using password: Yes)
