作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何在 MariaDB 中重置密码?我使用 Windows 而不是 Linux。谁知道如何重置我的 MySQL MariaDB 密码?我尝试在 Google 上搜索但没有帮助。
最佳答案
我遇到了同样的问题。我丢失了 Windows 开发机器上测试服务器的 root 密码。按照 Linux 步骤:
之后
net stop mysql
尝试使用
调用 mysqldmysqld --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/
我是一名优秀的程序员,十分优秀!