Authentication plugin 'caching_sha2_password' cannot be loaded

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

    Note: For Linux (Debian, Ubuntu, Mint)

    I got this error:

    MySQL Error Message: Plugin caching_sha2_password could not be loaded: /usr/lib/x86_64-linux-gnu/mariadb19/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
    

    I solved with this steps:

    1. Enter on mysql console: $ mysql -u root -p, if you don't has a password for root user, then:

    2. Use mysql db: mysql> use mysql;

    3. Alter your user for solve the problem: mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

    4. Exit... mysql> quit;

    5. Done!

提交回复
热议问题