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
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..
The error message is quite clear:
There is no mysqld_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:
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[^].