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

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

CentOS 7 MySQL 5.7 root password reset

2 thoughts on “bash: mysql_safe: command not found

Leave a Reply

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