File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ RUN set -ex; \
44
44
apt-key list > /dev/null
45
45
46
46
ENV MYSQL_MAJOR 8.0
47
- ENV MYSQL_VERSION 8.0.4-rc -1debian9
47
+ ENV MYSQL_VERSION 8.0.11 -1debian9
48
48
49
49
RUN echo "deb http://repo.mysql.com/apt/debian/ stretch mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list
50
50
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ _check_config() {
59
59
# latter only show values present in config files, and not server defaults
60
60
_get_config () {
61
61
local conf=" $1 " ; shift
62
- " $@ " --verbose --help --log-bin-index=" $( mktemp -u) " 2> /dev/null | awk ' $1 == "' " $conf " ' " { print $2; exit }'
62
+ " $@ " --verbose --help --log-bin-index=" $( mktemp -u) " 2> /dev/null \
63
+ | awk ' $1 == "' " $conf " ' " && /^[^ \t]/ { sub(/^[^ \t]+[ \t]+/, ""); print; exit }'
64
+ # match "datadir /some/path with/spaces in/it here" but not "--xyz=abc\n datadir (xyz)"
63
65
}
64
66
65
67
# allow the container to be started with `--user`
@@ -143,7 +145,7 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
143
145
-- or products like mysql-fabric won't work
144
146
SET @@SESSION.SQL_LOG_BIN=0;
145
147
146
- SET PASSWORD FOR 'root'@'localhost'=PASSWORD( '${MYSQL_ROOT_PASSWORD} ') ;
148
+ ALTER USER 'root'@'localhost' IDENTIFIED BY '${MYSQL_ROOT_PASSWORD} ' ;
147
149
GRANT ALL ON *.* TO 'root'@'localhost' WITH GRANT OPTION ;
148
150
${rootCreate}
149
151
DROP DATABASE IF EXISTS test ;
You can’t perform that action at this time.
0 commit comments