gpt4 book ai didi

mariadb - 如何在 Windows 上的 MariaDB 中重置密码?

转载 作者:行者123 更新时间:2023-12-05 08:34:34 30 4
gpt4 key购买 nike

如何在 MariaDB 中重置密码?我使用 Windows 而不是 Linux。谁知道如何重置我的 MySQL MariaDB 密码?我尝试在 Google 上搜索但没有帮助。

最佳答案

我遇到了同样的问题。我丢失了 Windows 开发机器上测试服务器的 root 密码。按照 Linux 步骤:

之后

net stop mysql 

尝试使用

调用 mysqld
mysqld --skip-grant-tables

mysqld 只会以一条短消息退出

[Note] mysqld.exe <...5.5.48.MariaDB> starting as process <pid> ...

然后它就退出了。但是我尝试直接启动 mysqld,没有 mysqld.exe 进程。服务启动命令可能有一些参数组合,使 mysqld 能够运行。尝试通过配置文件传递设置并且它有效。

skip-grant-tables=TRUE

进入 MariaDB 5.5\data\my.ini重启mysqld,按

网络停止mysql && 网络启动mysql

然后能够以 root 身份登录。

不要忘记删除插入的行并重新启动 mysqld。

关于mariadb - 如何在 Windows 上的 MariaDB 中重置密码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23288744/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com