在unix中重置mysql密码时出现问题 [英] Problem resetting password for mysql in unix
问题描述
我明白需要做些什么,但我无法通过我找到的使用说明书中的一步......
我是什么尝试过:
192-168-1-5:〜*** $ sudo mysqld_safe --skip-grant-tables
密码:
sudo:mysqld_safe:找不到命令
192-168-1-5:〜*** $
我看过的每一个视频,教学手册,指南都有一个评论部分散落着有这个问题的人(有些人没有),但我还没有看到答案..
I understand what needs to be done, but I can't get past a step in the instruction manuals I have found..
What I have tried:
192-168-1-5:~ ***$ sudo mysqld_safe --skip-grant-tables
Password:
sudo: mysqld_safe: command not found
192-168-1-5:~ ***$
Every video, instructional manual, guide I have seen has a comment section littered with people having this problem (some don't) but I am yet to see an answer..
推荐答案
sudo mysqld_safe --skip-grant-tables
密码:
sudo:mysqld_safe:找不到命令
192-168-1-5:〜***
sudo mysqld_safe --skip-grant-tables
Password:
sudo: mysqld_safe: command not found
192-168-1-5:~ ***
每个视频,教学手册,指南我都有看到有一个评论部分散落着有这个问题的人(有些没有),但我还没有看到答案..
Every video, instructional manual, guide I have seen has a comment section littered with people having this problem (some don't) but I am yet to see an answer..
错误信息非常清楚:
您的系统上没有mysqld_safe
命令,或者找不到它。
您必须确定如何MySQL服务器在您的系统上启动。这通常使用启动脚本完成。您已使用MacOS标记了您的问题。到目前为止我还没有使用过MacOS,但MacOS的MySQL安装提供了一些提示:
The error message is quite clear:
There is nomysqld_safe
command on your system or it can't be found.
You have to determine how the MySQL server is started on your system. This is usually done using a start script. You have tagged your question with MacOS. I have not used MacOS so far but the MySQL installation for MacOS provides some hints:
使用命令行中的launchctl,或使用MySQL偏好窗格单击开始启动MySQL。
Use either launchctl from the command line, or start MySQL by clicking "Start" using the MySQL preference pane.
使用以下方法之一停止服务器并通过重新启动它 - 跳过-grant-tables
参数或将其添加到配置文件后。
有关如何重置root密码的说明,请参阅官方文档: MySQL :: MySQL 5.7参考手册:: B.5.3.2如何重置Root密码 [ ^ ]。
Use one of these methods to stop the server and restart it passing the --skip-grant-tables
parameter or after having added it to a configuration file.
For instructions on how to reset the root password see the official documentation: MySQL :: MySQL 5.7 Reference Manual :: B.5.3.2 How to Reset the Root Password[^].
这篇关于在unix中重置mysql密码时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!