After changing mysql password, I did executed skip-grant-tables, so when I try to login to mysql without password I cannot login. It gives access denied message. Why is that
Following are the steps I did. First I installed mysql and changed the password
1) sudo yum install mysql-community-server
2) sudo service mysqld start
3) sudo grep 'temporary password' /var/log/mysqld.log
4) mysql -uroot -p
5) ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
Then tried to login with skip grant tables
6) sudo service mysqld stop
7) mysqld_safe --skip-grant-tables &
Now I get Access denied message