Authentication plugin 'caching_sha2_password' cannot be loaded

前端 未结 30 3414
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 05:19

I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error:

Authentication plugin \'caching_sha2_password\' cannot be loaded: dlop

30条回答
  •  生来不讨喜
    2020-11-22 05:59

    For Windows 10:

    Open the command prompt:

    cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"
    
    C:\Program Files\MySQL\MySQL Server 8.0\bin> mysql -u root -p
    Enter password: *********
    
    mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newrootpassword';
    Query OK, 0 rows affected (0.10 sec)
    
    mysql> exit
    

    Alternatively, you can change the my.ini configuration as the following:

    [mysqld]
    
    default_authentication_plugin=mysql_native_password
    

    Restart the MySQL Server and open the Workbench again.

提交回复
热议问题