Authentication plugin 'caching_sha2_password' cannot be loaded

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

    I found that

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

    didn't work by itself. I also needed to set

    [mysqld]
        default_authentication_plugin=mysql_native_password
    

    in /etc/mysql/mysql.conf.d/mysqld.cnf on Ubuntu 18.04 running PHP 7.0

提交回复
热议问题