From 09866ac6417af86d5894ac1def8e94efb8c8fba9 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 16 Dec 2015 17:18:01 +0100 Subject: [PATCH] Support newer versions of MySQL Change-Id: I79bcd5d345d5cd5c468f7b8647adff85b3608170 --- setup-test-env-mysql.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup-test-env-mysql.sh b/setup-test-env-mysql.sh index 81d446923..6e10a1511 100755 --- a/setup-test-env-mysql.sh +++ b/setup-test-env-mysql.sh @@ -18,6 +18,7 @@ check_for_cmd mysqld # Start MySQL process for tests MYSQL_DATA=`mktemp -d /tmp/AODH-MYSQL-XXXXX` trap "clean_exit ${MYSQL_DATA}" EXIT +mysqld --initialize-insecure --datadir=${MYSQL_DATA} || true mkfifo ${MYSQL_DATA}/out mysqld --datadir=${MYSQL_DATA} --pid-file=${MYSQL_DATA}/mysql.pid --socket=${MYSQL_DATA}/mysql.socket --skip-networking --skip-grant-tables &> ${MYSQL_DATA}/out & # Wait for MySQL to start listening to connections