Abilitare il login da root
mysql -u root -p
>use mysql;
>update user set plugin='' where user='root';
>flush privileges;
Per disabilitare:
>update user set plugin='unix_socket' where user='root';