renaming to mysql for clarification

This commit is contained in:
Alarig Le Lay 2020-11-22 12:32:50 +01:00
parent 3787329fd6
commit 7446537cc9
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC

View file

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