Browse Source

renaming to mysql for clarification

master
Alarig Le Lay 2 years ago
parent
commit
7446537cc9
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
  1. 10
      manage_mysql.py

10
manage_mysql.py

@ -17,7 +17,7 @@ import pymysql
import sys
# Read conf.ini
INI_CONF = "./config/sql_conf.ini"
INI_CONF = "./config/mysql_conf.ini"
if os.path.exists(INI_CONF) is False:
print("MySQL configuration error, {}: file not found".format(INI_CONF))
@ -27,10 +27,10 @@ CONFIG = ConfigParser()
CONFIG.read(INI_CONF)
# DB parameters
SQL_HOST = CONFIG.get('sql', 'host')
SQL_DB = CONFIG.get('sql', 'database')
SQL_USER = CONFIG.get('sql', 'user')
SQL_PWD = CONFIG.get('sql', 'passwd')
SQL_HOST = CONFIG.get('mysql', 'host')
SQL_DB = CONFIG.get('mysql', 'database')
SQL_USER = CONFIG.get('mysql', 'user')
SQL_PWD = CONFIG.get('mysql', 'passwd')
class HandleSql:

Loading…
Cancel
Save