mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-24 07:53:47 +00:00
Test fix granting DB permission over tcp
This commit is contained in:
parent
be80b4f5af
commit
37268a0fd1
1 changed files with 3 additions and 3 deletions
|
@ -107,8 +107,8 @@ install_database() {
|
||||||
echo "Installing MySQL client: Done"
|
echo "Installing MySQL client: Done"
|
||||||
|
|
||||||
mysql_command="CREATE DATABASE $db_name collate='utf8_general_ci';
|
mysql_command="CREATE DATABASE $db_name collate='utf8_general_ci';
|
||||||
CREATE USER '$username'@'localhost' IDENTIFIED BY '$password';
|
CREATE USER '$username'@'127.0.0.1' IDENTIFIED BY '$password';
|
||||||
GRANT ALL PRIVILEGES ON $db_name.* TO '$username'@'localhost';
|
GRANT ALL PRIVILEGES ON $db_name.* TO '$username'@'127.0.0.1';
|
||||||
FLUSH PRIVILEGES;"
|
FLUSH PRIVILEGES;"
|
||||||
|
|
||||||
if [ "$local_setup" == 1 ]; then
|
if [ "$local_setup" == 1 ]; then
|
||||||
|
@ -491,7 +491,7 @@ interactive_guide() {
|
||||||
# Use of default values for local setup
|
# Use of default values for local setup
|
||||||
sql_name="re2o"
|
sql_name="re2o"
|
||||||
sql_login="re2o"
|
sql_login="re2o"
|
||||||
sql_host="localhost"
|
sql_host="127.0.0.1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prompt to enter the database password
|
# Prompt to enter the database password
|
||||||
|
|
Loading…
Reference in a new issue