1UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE user = 'root' AND plugin = 'unix_socket';
2FLUSH PRIVILEGES;
1SELECT user,authentication_string,plugin,host FROM mysql.user;
2ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Current-Root-Password';
3FLUSH PRIVILEGES;
1UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE user = 'root' AND plugin = 'unix_socket';
2FLUSH PRIVILEGES;
3