|
|
@ -6,10 +6,10 @@ import dcs.tools.cookie as cookie
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 获取数据库连接对象
|
|
|
|
# 获取数据库连接对象
|
|
|
|
# def mysql_conn(host='10.129.16.173', user='root', passwd='427318Aa', db='test'):
|
|
|
|
def mysql_conn(host='10.129.16.173', user='root', passwd='427318Aa', db='test'):
|
|
|
|
# def mysql_conn(host='10.129.16.155', user='root', passwd='427318Aa', db='test'):
|
|
|
|
# def mysql_conn(host='10.129.16.155', user='root', passwd='427318Aa', db='test'):
|
|
|
|
# def mysql_conn(host='192.168.43.64', user='root', passwd='427318Aa', db='test'):
|
|
|
|
# def mysql_conn(host='192.168.43.64', user='root', passwd='427318Aa', db='test'):
|
|
|
|
def mysql_conn(host='127.0.0.1', user='root', passwd='xwdjzwy5252', db='test'):
|
|
|
|
# def mysql_conn(host='127.0.0.1', user='root', passwd='xwdjzwy5252', db='test'):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
# logger.debug('connecting to database...')
|
|
|
|
# logger.debug('connecting to database...')
|
|
|
|
conn = pymysql.connect(host=host, user=user, passwd=passwd, db=db)
|
|
|
|
conn = pymysql.connect(host=host, user=user, passwd=passwd, db=db)
|
|
|
|