Authentication plugin 'caching_sha2_password' cannot be loaded

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

    I had the same problem, but the answer by Aman Aggarwal didn't work for me with a Docker container running mysql 8.X. I loged in the container

    docker exec -it CONTAINER_ID bash
    

    then log into mysql as root

    mysql --user=root --password
    

    Enter the password for root (Default is 'root') Finally Run:

    ALTER USER 'username' IDENTIFIED WITH mysql_native_password BY 'password';
    

    You're all set.

提交回复
热议问题