Commit ba13e5ce4aea743b00f95a4df48d7862a5eb8ddd
1 parent
9b436649
Exists in
dev
fix centos req AGAIN, hopefully last time
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
install/install.py
... | ... | @@ -161,7 +161,7 @@ def install_python_modules(venv): |
161 | 161 | sql_user = "pyros" |
162 | 162 | sql_pswd = "DjangoPyros" |
163 | 163 | req = "CREATE DATABASE IF NOT EXISTS pyros; CREATE USER IF NOT EXISTS pyros; GRANT USAGE ON *.* TO 'pyros'; DROP USER 'pyros'; GRANT ALL ON pyros.* TO 'pyros'@'localhost' IDENTIFIED BY 'DjangoPyros'; GRANT ALL ON test_pyros.* TO 'pyros'@'localhost'; GRANT ALL PRIVILEGES ON test_pyros_test.* TO 'pyros'@'localhost';" |
164 | - req_centos = "CREATE DATABASE IF NOT EXISTS pyros; CREATE DATABASE IF NOT EXISTS pyros_test; GRANT USAGE ON *.* TO 'pyros'@'localhost' IDENTIFIED BY 'DjangoPyros' WITH GRANT OPTION; DROP USER 'pyros'@'localhost'; CREATE USER 'pyros' IDENTIFIED BY 'DjangoPyros'; GRANT ALL PRIVILEGES ON pyros.* TO 'pyros'@'localhost' IDENTIFIED BY 'DjangoPyros' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON test_pyros.* TO pyros@localhost IDENTIFIED BY 'DjangoPyros' WITH GRANT OPTION;" | |
164 | + req_centos = "CREATE DATABASE IF NOT EXISTS pyros; CREATE DATABASE IF NOT EXISTS pyros_test; GRANT USAGE ON *.* TO 'pyros'@'localhost' IDENTIFIED BY 'DjangoPyros' WITH GRANT OPTION; DROP USER 'pyros'@'localhost'; GRANT ALL ON pyros.* TO 'pyros'@'localhost' IDENTIFIED BY 'DjangoPyros'; GRANT ALL PRIVILEGES ON pyros.* TO 'pyros'@'localhost' IDENTIFIED BY 'DjangoPyros' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON pyros_test.* TO pyros@localhost IDENTIFIED BY 'DjangoPyros' WITH GRANT OPTION;" | |
165 | 165 | if platform.dist()[0] == "centos": |
166 | 166 | req = req_centos |
167 | 167 | sql_request="\"" + req + "\"" + " | mysql -u root -p" | ... | ... |