Authentication plugin 'caching_sha2_password' cannot be loaded

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

    For Windows 10,

    1. Modify my.ini file in C:\ProgramData\MySQL\MySQL Server 8.0\

      [mysqld]
      default_authentication_plugin=mysql_native_password
      
    2. Restart the MySQL Service.

    3. Login to MySQL on the command line, and execute the following commands in MySQL:

      • Create a new user.

        CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
        
      • Grant all privileges.

        GRANT ALL PRIVILEGES ON * .* TO 'user'@'localhost';
        
    4. Open MySQL workbench, and open a new connection using the new user credentials.

    I was facing the same issue and this worked.

提交回复
热议问题