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
Leave a Reply