forked from grifon/python-module-mysql
manage_sql.py: sql_checkconn() rename (last n missing) and description correction
This commit is contained in:
parent
cd8db520bc
commit
64a935b301
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ class HandleSql:
|
||||||
"""Class to handle sql connection."""
|
"""Class to handle sql connection."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def sql_checkcon():
|
def sql_checkconn():
|
||||||
"""Init sql connection."""
|
"""Check MySQL connection."""
|
||||||
try:
|
try:
|
||||||
global conn
|
global conn
|
||||||
conn = pymysql.connect(host=SQL_HOST, db=SQL_DB, user=SQL_USER, passwd=SQL_PWD)
|
conn = pymysql.connect(host=SQL_HOST, db=SQL_DB, user=SQL_USER, passwd=SQL_PWD)
|
||||||
|
|
Loading…
Reference in a new issue