aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-15 16:57:16 +0200
committerAndreas Fischer <bantu@phpbb.com>2013-10-15 16:57:16 +0200
commit55e24eb4f87523c83e74a7174555a48b2a90b7a7 (patch)
treeb279364e1c71da3fad06fc3eecfda7caeae465ff /travis
parentcdaea7a4062c463e9536b3ca52207c013d8af408 (diff)
downloadforums-55e24eb4f87523c83e74a7174555a48b2a90b7a7.tar
forums-55e24eb4f87523c83e74a7174555a48b2a90b7a7.tar.gz
forums-55e24eb4f87523c83e74a7174555a48b2a90b7a7.tar.bz2
forums-55e24eb4f87523c83e74a7174555a48b2a90b7a7.tar.xz
forums-55e24eb4f87523c83e74a7174555a48b2a90b7a7.zip
[ticket/11920] Have to use empty root password otherwise db creation fails.
PHPBB3-11920
Diffstat (limited to 'travis')
-rw-r--r--travis/phpunit-mariadb-travis.xml2
-rwxr-xr-xtravis/setup-mariadb.sh7
2 files changed, 8 insertions, 1 deletions
diff --git a/travis/phpunit-mariadb-travis.xml b/travis/phpunit-mariadb-travis.xml
index d49118b0f8..1eaee5b7d8 100644
--- a/travis/phpunit-mariadb-travis.xml
+++ b/travis/phpunit-mariadb-travis.xml
@@ -34,7 +34,7 @@
<server name="PHPBB_TEST_DBPORT" value="3306" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="root" />
- <server name="PHPBB_TEST_DBPASSWD" value="rootpasswd" />
+ <server name="PHPBB_TEST_DBPASSWD" value="" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
</php>
diff --git a/travis/setup-mariadb.sh b/travis/setup-mariadb.sh
index 68359e400a..2e974da8eb 100755
--- a/travis/setup-mariadb.sh
+++ b/travis/setup-mariadb.sh
@@ -24,3 +24,10 @@ sudo apt-get update -qq
sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password password rootpasswd"
sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password_again password rootpasswd"
sudo apt-get install -qq mariadb-server
+
+# Set root password to empty string.
+echo "
+USE mysql;
+UPDATE user SET Password = PASSWORD('') where User = 'root';
+FLUSH PRIVILEGES;
+" | mysql -u root -prootpasswd