Set mysql connection charset to utf8
This commit is contained in:
Родитель
451f96cea1
Коммит
b7465e66cb
|
@ -109,7 +109,7 @@ def get_mirror(status, id, row):
|
||||||
def getconn():
|
def getconn():
|
||||||
db = settings.SERVICES_DATABASE
|
db = settings.SERVICES_DATABASE
|
||||||
return mysql.connect(host=db['HOST'], user=db['USER'],
|
return mysql.connect(host=db['HOST'], user=db['USER'],
|
||||||
passwd=db['PASSWORD'], db=db['NAME'])
|
passwd=db['PASSWORD'], db=db['NAME'], charset='utf8')
|
||||||
|
|
||||||
|
|
||||||
mypool = pool.QueuePool(getconn, max_overflow=10, pool_size=5, recycle=300)
|
mypool = pool.QueuePool(getconn, max_overflow=10, pool_size=5, recycle=300)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче