Commit 49dec601e686fa996b38726db1d327c605bc8b2e
1 parent
696494ff
Exists in
dev
bugfix mysql
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
install/install.py
... | ... | @@ -302,7 +302,8 @@ def install_database(venv): |
302 | 302 | # J'ai simplifié comme ça : |
303 | 303 | ''' |
304 | 304 | sql_query += \ |
305 | - "GRANT ALL ON "+SQL_DATABASE_TEST+".* TO '"+SQL_USER+"'@'localhost' IDENTIFIED BY '"+SQL_PSWD+"' ;" | |
305 | + "GRANT ALL ON "+SQL_DATABASE_TEST+".* TO '"+SQL_USER+"'@'localhost' IDENTIFIED BY '"+SQL_PSWD+"' ; " +\ | |
306 | + "GRANT USAGE ON *.* TO '"+SQL_USER+"'@localhost ; " | |
306 | 307 | # NEWER MYSQL: |
307 | 308 | # OLDER MYSQL: Try this instead for OLDER mysql (works on CentOS 6.4 and Centos 7.5 with mysql 5.5): |
308 | 309 | #req = "drop database pyros; CREATE DATABASE pyros; drop database pyros_test ; CREATE DATABASE pyros_test; drop user 'pyros'@'localhost' ; CREATE USER 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'; GRANT ALL ON pyros_test.* TO 'pyros'@'localhost' IDENTIFIED BY 'DjangoPyros'" | ... | ... |