Authentication plugin 'caching_sha2_password' cannot be loaded

前端 未结 30 3168
爱一瞬间的悲伤
爱一瞬间的悲伤 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:50

    Here is the solution which worked for me after MySQL 8.0 Installation on Windows 10.

    Suppose MySQL username is root and password is admin

    Open command prompt and enter the following commands:

    cd C:\Program Files\MySQL\MySQL Server 8.0\bin

    mysql_upgrade -uroot -padmin

    mysql -uroot -padmin

    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'admin'

提交回复
热议问题