MySQL 8.0.23 Password lost

mysqld_safe: command not found


8.0.23 MySQL
A explanation for the “mysqld_safe not found” error and what you can do to reset mysql root password in system

1. stop mysqld

2. –skip-grant-tables

3. start mysqld

4. Login as root

5. Update the root user password

6. Stop mysql

7. Unset the mySQL envitroment option so it starts normally next time

8. Start mysql normally

7. Try to login