fix mysql_native_password

This commit is contained in:
erikn69
2024-05-22 12:45:52 -05:00
parent 0d213effcc
commit 0b18a45163
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