I often forget how to switch root back to the old MySQL Native authentication.

UPDATE mysql.user
    SET plugin = 'mysql_native_password',
        authentication_string = PASSWORD('password')
    WHERE User = 'root';

FLUSH PRIVILEGES;