Commit 11137fb48253c056a6e548db9142f448877f16ff
1 parent
578613de
Exists in
master
and in
1 other branch
Fix install script (for mysql)
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
install/install_requirements.sh
... | ... | @@ -19,7 +19,7 @@ PORT=8000 |
19 | 19 | |
20 | 20 | ASK_USE_MYSQL="-Do you wish to use mysql in your project ? Only if mysql-server is installed. (Default: No) (Y/N)" |
21 | 21 | ASK_MYSQL_USERNAME="-MySQL server login (default $USERNAME): " |
22 | -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'" | |
22 | +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'" | |
23 | 23 | SQL_FAIL="-Failed to execute database script, probably due to a wrong username or password" |
24 | 24 | TELL_MYSQL_CREATIONS="-Created pyros database.\n-Created new user '$DB_USER' with password '$DB_PASSWORD'" |
25 | 25 | USE_SQLITE="-Sqlite will be used by default. There is no required configuration." | ... | ... |
src/pyros/settings.py
... | ... | @@ -29,7 +29,7 @@ MODULES_VERSIONS = { |
29 | 29 | # Set MYSQL to False if you want to use SQLITE |
30 | 30 | # This line MUST NOT be changed at all except from changing True/False |
31 | 31 | # (or install_requirements script will become invalid) |
32 | -MYSQL = False | |
32 | +MYSQL = True | |
33 | 33 | |
34 | 34 | import os |
35 | 35 | ... | ... |