diff --git a/install/install_requirements.sh b/install/install_requirements.sh index cbed4bb..7d1ee65 100755 --- a/install/install_requirements.sh +++ b/install/install_requirements.sh @@ -19,7 +19,7 @@ PORT=8000 ASK_USE_MYSQL="-Do you wish to use mysql in your project ? Only if mysql-server is installed. (Default: No) (Y/N)" ASK_MYSQL_USERNAME="-MySQL server login (default $USERNAME): " -SQL_SCRIPT="CREATE DATABASE IF NOT EXISTS pyros; GRANT USAGE ON *.* TO '$DB_USER'; DROP USER '$DB_USER'; GRANT ALL ON pyros.* TO '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASSWORD'; GRANT ALL ON test_pyros.* TO '$DB_USER'@'localhost'" +SQL_SCRIPT="CREATE DATABASE IF NOT EXISTS pyros; CREATE USER IF NOT EXISTS pyros; GRANT USAGE ON *.* TO '$DB_USER'; DROP USER '$DB_USER'; GRANT ALL ON pyros.* TO '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASSWORD'; GRANT ALL ON test_pyros.* TO '$DB_USER'@'localhost'" SQL_FAIL="-Failed to execute database script, probably due to a wrong username or password" TELL_MYSQL_CREATIONS="-Created pyros database.\n-Created new user '$DB_USER' with password '$DB_PASSWORD'" USE_SQLITE="-Sqlite will be used by default. There is no required configuration." diff --git a/src/pyros/settings.py b/src/pyros/settings.py index 32cd68a..989e0f2 100644 --- a/src/pyros/settings.py +++ b/src/pyros/settings.py @@ -29,7 +29,7 @@ MODULES_VERSIONS = { # Set MYSQL to False if you want to use SQLITE # This line MUST NOT be changed at all except from changing True/False # (or install_requirements script will become invalid) -MYSQL = False +MYSQL = True import os -- libgit2 0.21.2