8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Test fix granting DB permission over tcp

This commit is contained in:
Maël Kervella 2018-06-25 22:11:26 +00:00
parent be80b4f5af
commit 37268a0fd1

View file

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