Authentication plugin 'caching_sha2_password' cannot be loaded

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

    Almost like answers above but may be in simple queries, I was getting this error in my spring boot application along with hibernate after MySQL upgrade. We created a new user by running the queries below against our DB. I believe this is a temp work around to use sha256_password instead of latest and good authentication caching_sha2_password.

    CREATE USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'pa$$word';
    
    GRANT ALL PRIVILEGES ON * .* TO 'username'@'localhost';
    

提交回复
热议问题