fix mysql_native_password
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user