简体   繁体   English

无法重置根密码:Windows,MySQL8.0

[英]Unable to reset Root Password: windows, MySQL8.0

I have forgotten my root password and I am following the official page to reset my password.I have followed the exact steps. 我忘记了root密码,并且正在按照官方页面重设密码。我已经按照确切的步骤操作了。

When I run the sql-init.txt file my bash gets stuck and the installation never completes. 当我运行sql-init.txt文件时,我的bash卡住了,并且安装从未完成。

C:\Windows\system32>cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"

C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --defaults-file="C:\\ProgramData\\MySQL\\MySQL Server 8.0\\my.ini" --init-file=C:\\mysql-init.txt --console
2019-03-04T12:06:43.930229Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2019-03-04T12:06:43.932934Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.15) starting as process 2556
2019-03-04T12:06:48.805422Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2019-03-04T12:06:48.996196Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.15'  socket: ''  port: 3306  MySQL Community Server - GPL.
2019-03-04T12:06:49.078797Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060

Please guide. 请指导。

The commandline was getting stuck. 命令行卡住了。 So , I had to close it forcefully(Ctrl+C). 因此,我不得不强制关闭它(Ctrl + C)。 Restarting my computer and MySQL services got it working. 重新启动计算机和MySQL服务即可正常工作。
Password was set to the new one. 密码已设置为新密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM