bitsCN.com
在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
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号