Authentication plugin 'caching_sha2_password' cannot be loaded

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

    For those using Docker or Docker Compose, I experienced this error because I didn't set my MySQL image version. Docker will automatically attempt to get the latest version which is 8.

    I set MySQL to 5.7 and rebuilt the image and it worked as normal:

    version: '2'
    services: 
      db:
       image: mysql:5.7
    

提交回复
热议问题