8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b51a62 commit 60b6dfeCopy full SHA for 60b6dfe
.travis/initializedb.sh
@@ -4,29 +4,19 @@
4
set -exv
5
6
if [ ! -z "${DB}" ]; then
7
- # disable existing database server in case of accidential connection
8
- sudo service mysql stop
9
-
10
- docker pull ${DB}
11
docker run -it --name=mysqld -d -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 ${DB}
12
- sleep 10
13
14
mysql() {
15
docker exec mysqld mysql "${@}"
16
}
17
while :
18
do
19
sleep 5
20
- mysql -e 'select version()'
21
- if [ $? = 0 ]; then
22
- break
23
- fi
+ mysql -e 'select version()' && break
24
echo "server logs"
25
docker logs --tail 5 mysqld
26
done
27
28
- mysql -e 'select VERSION()'
29
30
if [ $DB == 'mysql:8.0' ]; then
31
WITH_PLUGIN='with mysql_native_password'
32
mysql -e 'SET GLOBAL local_infile=on'
0 commit comments