bash: mysql_safe: command not found

On CentOS 7 server running MySQL 5.7, when trying to reset MySQL root password, I get an error

[root@SAU-8E161-OR ~]# mysqld_safe --skip-grant-tables
-bash: mysqld_safe: command not found
[root@SAU-8E161-OR ~]#

This is because MySQL 5.7 installation using yum removed the mysqld_safe binary file.

To reset, you need to start MySQL using systemctl with skip-grant-tables options. So you don’t need mysqld_safe. To see how to reset MySQL root password on CentOS 7, follow instructions avaialble at

Advertisement

CentOS 7 MySQL 5.7 root password reset

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement