Merge pull request #3521 from erikn69/patch-25

Fix `mysql_native_password` on MySQL 8.4.0 (2024-04-30, LTS Release)
This commit is contained in:
Shao Yu-Lung (Allen)
2024-05-25 13:59:27 +08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -15,4 +15,10 @@ COPY my.cnf /etc/mysql/conf.d/my.cnf
RUN chmod 0444 /etc/mysql/conf.d/my.cnf
RUN if [ ${MYSQL_VERSION} > '8.4.0-0.000' ]; then \
echo 'mysql_native_password=on' >> /etc/mysql/conf.d/my.cnf \
else \
echo 'default-authentication-plugin=mysql_native_password' >> /etc/mysql/conf.d/my.cnf \
;fi
EXPOSE 3306

View File

@@ -8,5 +8,4 @@
[mysqld]
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
character-set-server=utf8
default-authentication-plugin=mysql_native_password
innodb_use_native_aio=0