Step 1
service mysql stop
mkdir -p /var/run/mysqld
chown mysql:mysql /var/run/mysqld
mysqld_safe --skip-grant-tables --skip-syslog --skip-networking
Step 2
Open a new terminal.
2.1
mysql -u root
use mysql;
2.2
update user set plugin="mysql_native_password" where User='root';
flush privileges;
2.3
\q
Step 3
Step 4
service mysql start