代码之家  ›  专栏  ›  技术社区  ›  Dean Schulze

无法使用mysql workbench连接到mysql docker image

  •  0
  • Dean Schulze  · 技术社区  · 6 年前

    我负责 mysql docker image

    docker run --name mysql-docker -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mysql_root -d mysql:8.0.12

    容器正在运行。当我试图从本地机器上用MySQL Workbench连接到它时,我得到

    Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory

    dockerhub页面上的文档没有提到从localhost进行连接的任何内容,所以我在MySQL Workbench中使用127.0.0.1作为主机名。

    0 回复  |  直到 6 年前