From 37268a0fd194b4f52010a1f6496cb2e73787507c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Mon, 25 Jun 2018 22:11:26 +0000 Subject: [PATCH] Test fix granting DB permission over tcp --- install_re2o.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_re2o.sh b/install_re2o.sh index 073fcf10..3c03857d 100755 --- a/install_re2o.sh +++ b/install_re2o.sh @@ -107,8 +107,8 @@ install_database() { echo "Installing MySQL client: Done" mysql_command="CREATE DATABASE $db_name collate='utf8_general_ci'; - CREATE USER '$username'@'localhost' IDENTIFIED BY '$password'; - GRANT ALL PRIVILEGES ON $db_name.* TO '$username'@'localhost'; + CREATE USER '$username'@'127.0.0.1' IDENTIFIED BY '$password'; + GRANT ALL PRIVILEGES ON $db_name.* TO '$username'@'127.0.0.1'; FLUSH PRIVILEGES;" if [ "$local_setup" == 1 ]; then @@ -491,7 +491,7 @@ interactive_guide() { # Use of default values for local setup sql_name="re2o" sql_login="re2o" - sql_host="localhost" + sql_host="127.0.0.1" fi # Prompt to enter the database password