mysql登录遇到ERROR 1045问题解决方法
在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
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
Abp组织架构
实体Entity[Table("NovelPlayer")]public class Player : Enti...
[阅读全文]
-
-
-
-
分布式事务
分布式事务文章目录分布式事务一、分布式场景下的数据一致性问题形成原因剖析1. 分布式事务背景背景知识什么情况下会...
[阅读全文]
-
-
-
-
-
网友评论