File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
FROM debian:wheezy
2
-
3
2
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
4
3
RUN groupadd -r mysql && useradd -r -g mysql mysql
5
4
@@ -39,15 +38,12 @@ ENV PATH $PATH:/usr/local/mysql/bin:/usr/local/mysql/scripts
39
38
# replicate some of the way the APT package configuration works
40
39
# this is only for 5.5 since it doesn't have an APT repo, and will go away when 5.5 does
41
40
RUN mkdir -p /etc/mysql/conf.d \
42
- && { \
43
- echo '[mysqld]' ; \
44
- echo '!includedir /etc/mysql/conf.d/' ; \
45
- } > /etc/mysql/my.cnf \
46
41
&& { \
47
42
echo '[mysqld]' ; \
48
43
echo 'user = mysql' ; \
49
44
echo 'datadir = /var/lib/mysql' ; \
50
- } > /etc/mysql/conf.d/docker.cnf
45
+ echo '!includedir /etc/mysql/conf.d/' ; \
46
+ } > /etc/mysql/my.cnf
51
47
52
48
VOLUME /var/lib/mysql
53
49
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ if [ "$1" = 'mysqld' ]; then
79
79
80
80
echo ' FLUSH PRIVILEGES ;' >> " $tempSqlFile "
81
81
82
- mysql -uroot < " $tempSqlFile "
82
+ mysql --protocol=socket - uroot < " $tempSqlFile "
83
83
84
84
rm -f " $tempSqlFile "
85
85
kill $( cat $PIDFILE )
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ if [ "$1" = 'mysqld' ]; then
78
78
79
79
echo ' FLUSH PRIVILEGES ;' >> " $tempSqlFile "
80
80
81
- mysql -uroot < " $tempSqlFile "
81
+ mysql --protocol=socket - uroot < " $tempSqlFile "
82
82
83
83
rm -f " $tempSqlFile "
84
84
kill $( cat $PIDFILE )
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ if [ "$1" = 'mysqld' ]; then
78
78
79
79
echo ' FLUSH PRIVILEGES ;' >> " $tempSqlFile "
80
80
81
- mysql -uroot < " $tempSqlFile "
81
+ mysql --protocol=socket - uroot < " $tempSqlFile "
82
82
83
83
rm -f " $tempSqlFile "
84
84
kill $( cat $PIDFILE )
You can’t perform that action at this time.
0 commit comments