Sol : Look out for the detailed error message in /var/log/mysqld:
[ERROR] /usr/libexec/mysqld: File '/root/pass-reset.txt' not found (Errcode: 13)
Lookout for the file permission, as MySQL should have enough privileges to read the file.

Couldn’t find mysqld_safe executable?

Well, you do the same with mysqld executable as shown below:

# mysqld --init-file=/var/lib/mysql/pass-reset.txt

Step 4: Jump to a different terminal and try accessing MySQL root user with the new password

# mysql -u root -p

Step 5: If you are able to login successfully with the new password, then you can kill the mysqld_safe process started in step 3.

# killall mysqld

Step 6: Start mysqld normally

# /etc/init.d/mysql start

Step 7: Login to MySQL root account and check if everything works as expected.

Step 8: This step is very important. Remember to remove the password file created in step 2: