1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11920] Have to use empty root password otherwise db creation fails.

PHPBB3-11920
This commit is contained in:
Andreas Fischer
2013-10-15 16:57:16 +02:00
parent cdaea7a406
commit 55e24eb4f8
2 changed files with 8 additions and 1 deletions

View File

@@ -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