diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-10-15 16:57:16 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-10-15 16:57:16 +0200 |
commit | 55e24eb4f87523c83e74a7174555a48b2a90b7a7 (patch) | |
tree | b279364e1c71da3fad06fc3eecfda7caeae465ff /travis/setup-mariadb.sh | |
parent | cdaea7a4062c463e9536b3ca52207c013d8af408 (diff) | |
download | forums-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-x | travis/setup-mariadb.sh | 7 |
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 |