sudo mysql
UPDATE mysql.user SET plugin="mysql_native_password" WHERE User='root';
UPDATE mysql.user SET authentication_string=PASSWORD("password") WHERE User='root';
FLUSH PRIVIlEGES;
quit
sudo service mysql restart
sudo mysql
UPDATE mysql.user SET plugin="mysql_native_password" WHERE User='root';
UPDATE mysql.user SET authentication_string=PASSWORD("password") WHERE User='root';
FLUSH PRIVIlEGES;
quit
sudo service mysql restart