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

CentOS 7 MySQL 5.7 root password reset

Comments

2 responses to “bash: mysql_safe: command not found”

  1. GURUMOORTHI L Avatar
    GURUMOORTHI L

    Hi

    I’m trying to reset mysql root password but ir showing..mysqld_safe not found

Leave a Reply

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