CLI variant fails connecting to MySql server via caching_sha2_password
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
调研方向
检查建议位置附近的 Dockerfile.template,并将其与报告中的 Dockerfile workaround 进行比较。将 mariadb-connector-c 软件包添加到 wordpress:cli 镜像中,然后构建 CLI 变体并验证它能使用 caching_sha2_password 连接到 MySQL 8,且不会出现缺少插件的错误。
由索引模型根据 Issue 内容生成。
描述
I'm using a docker-compose setup consisting of a mysql:8.0, a wordpress:6 and a wordpress:cli container. Wordpress itself works fine, but the CLI failed to connect to the server saying:
Failed to get current SQL modes. Reason: ERROR 1045 (28000): Plugin caching_sha2_password could not be loaded: Error loading shared library /usr/lib/mariadb/plugin/caching_sha2_password.so: No such file or directory
I dug deeper and found out that the underlying php:8.x-alpine image doesn't seem to include the necessary libraries per default, but they can be added by installing the mariadb-connector-c package (see: https://github.com/arey/mysql-client/issues/5)
I can confirm; it now works, using the following hacky Dockerfile for the cli:
FROM wordpress:cli
USER root
RUN apk add --no-cache mariadb-connector-c
USER www-data
I'd suggest that the package be included in the wordpress:cli variant. Supposedly it could be added in https://github.com/docker-library/wordpress/blob/master/Dockerfile.template after line 17 – I don't feel competent enough for a PR…
- 主要语言
- Shell
- 星标
- 2k
- 派生
- 1.1k
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker-library/wordpress 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
docker-library/wordpress#1017 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
docker-library/wordpress#959 · 1 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
docker-library/wordpress#930 · 6 条评论 · 4 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
docker-library/wordpress#927 · 3 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
docker-library/wordpress#835 · 2 条评论 · 2 个 reaction ·
查看 docker-library/wordpress 的全部 Issue
相似的 Issue
-
out-of-date
难度 2/5 1-3 小时 新手友好度 78/100
CachyOS/CachyOS-PKGBUILDS#1908 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 68/100
CycloneDX/transparency-exchange-api#393 · 1 条评论 ·
-
area:build bug good first issue sev:papercut
难度 1/5 1 小时以内 新手友好度 92/100
Agent-Field/CodeAF#1446 ·
-
module/agent platform/macos type/bug/regression
难度 2/5 1-3 小时 新手友好度 88/100