Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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..
Posted
Updated 21-Mar-18 22:38pm

1 solution

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 either launchctl from the command line, or start MySQL by clicking "Start" using the MySQL preference pane.
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[^].
 
Share this answer
 
Comments
wilma2202 22-Mar-18 5:11am    
The instructions (in the manual you linked) state that you need to turn mysql server off and then enter the above command.

https://www.youtube.com/watch?v=90TGTG_4CQ0&t=27s

This brief video does as the instructions suggest, and if you look in the comment section there are many people who do exactly what is said, and get the same result.

This does seem to be a problem even for more experienced programmers than myself.
Jochen Arndt 22-Mar-18 5:34am    
The page I have linked to tell you that you have to stop and restart the service. How to do that depends on the system where the server is installed. It does not tell you to use mysqld_safe.

Forget about videos. They might be helpful when they are produced on the same system (OS) as yours. But this seems not be the case here. Use the official documentation instead.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900