aboutsummaryrefslogtreecommitdiffstats
path: root/travis/setup-mariadb.sh
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/setup-mariadb.sh
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/setup-mariadb.sh')
-rwxr-xr-xtravis/setup-mariadb.sh7
1 files changed, 7 insertions, 0 deletions
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