db
4 verified fixes Database errors
Reproduced on pinned MySQL and PostgreSQL images, fixed and re-checked.
4 errors
- unknown variable 'default-authentication-plugin=mysql_native_password'
unknown variable 'default-authentication-plugin=mysql_native_password' の直し方(MySQL 8.4 で変数が削除された)
mysql:8.4.11 · MySQL Server 8.4+ (default_authentication_plugin removed in 8.4.0, mysql_native_password removed server-side in 9.0.0) · docker compose up with command: --default-authentication-plugin=mysql_native_password after the image tag moves from 8.0 to 8.4 or laterdocker compose up で MySQL のコンテナだけが起動せず、ログを数行残して終了します。
MySQL 11 min read - Different lower_case_table_names settings for server ('1') and data dictionary ('0')
Different lower_case_table_names settings for server ('1') and data dictionary ('0') の直し方(MySQL 8.0.11 以降は初期化時の値しか受け付けない)
mysql:8.4.11 · MySQL Server 8.0.11+ (data dictionary table field collations are fixed at initialization; starting with a different lower_case_table_names is prohibited since 8.0.11, Bug #89035) · adding --lower-case-table-names=1 to an already-initialized data directory, typically after moving an app from a macOS or Windows MySQL install (default 2 or 1) to a Linux server or container (default 0)--lower-case-table-names=1 を足した次の起動から、MySQL が上がらなくなります。ログの終わりはこの 4 行です。
MySQL 15 min read - has a collation version mismatch
has a collation version mismatch の直し方(PostgreSQL 15 以降・glibc が上がった環境)
postgres@sha256:7958605b474b3d264a969cb3a123d6aa00ad1e1fe9da8a69984dabb704d93317 · PostgreSQL 17.10 (Debian) · starting a data directory created under glibc 2.36 (postgres:17-bookworm) on glibc 2.41 (postgres:17-trixie)ベースイメージや OS を上げたあと、PostgreSQL に接続するたびに同じ 3 行が出ます。
PostgreSQL 14 min read - old cluster does not use data checksums but the new one does
old cluster does not use data checksums but the new one does の直し方(PostgreSQL 18 で initdb の既定が反転した)
tianon/postgres-upgrade@sha256:4e0592febb5be292f197dc8e9e3eae0abcc4b34f69c98f01c5708de765be77f5 · PostgreSQL 18+ (initdb data checksums default flipped from off to on) · pg_upgrade from a PostgreSQL 17 cluster created with default initdb options to a PostgreSQL 18 cluster created with default initdb optionsPostgreSQL 17 から 18 へ pg_upgrade を回すと、整合性チェックの段で止まります。
PostgreSQL 8 min read
条件に一致するエラーはありません。フィルタを緩めてください。