Commit daea334ec47c6f030691db0572571f0d05c72933

Authored by Etienne Pallier
1 parent 8502c31d
Exists in dev

mysql debug...

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
install/install.py
... ... @@ -280,9 +280,11 @@ def install_database(venv):
280 280 sql_query += "GRANT ALL PRIVILEGES ON "+SQL_DATABASE+".* TO '"+SQL_USER+"'@'localhost' IDENTIFIED BY '"+SQL_PSWD+"' WITH GRANT OPTION; "
281 281 sql_query += "GRANT ALL PRIVILEGES ON "+SQL_DATABASE_TEST+".* TO "+SQL_USER+"@localhost IDENTIFIED BY '"+SQL_PSWD+"' WITH GRANT OPTION; "
282 282 else:
  283 + # Ne marche pas sur mysql 5.5.60 :
  284 + #"CREATE USER IF NOT EXISTS "+SQL_USER+"; " +\
283 285 sql_query = "CREATE DATABASE IF NOT EXISTS " + SQL_DATABASE +"; " +\
284 286 "CREATE DATABASE IF NOT EXISTS "+SQL_DATABASE_TEST+"; " +\
285   - "CREATE USER IF NOT EXISTS "+SQL_USER+"; " +\
  287 + "CREATE USER "+SQL_USER+"; " +\
286 288 "GRANT USAGE ON *.* TO '"+SQL_USER+"'; " +\
287 289 "DROP USER '"+SQL_USER+"'; " +\
288 290 "GRANT ALL ON "+SQL_DATABASE+".* TO '"+SQL_USER+"'@'localhost' IDENTIFIED BY '"+SQL_PSWD+"'; " +\
... ...