Skip to content

Commit 83c6693

Browse files
authored
fix mysql create_engine
remove encoding arg Signed-off-by: Bibo Hao <[email protected]>
1 parent 246579b commit 83c6693

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aloha/db/mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, db_config, **kwargs):
2424
try:
2525
self.db = create_engine(
2626
'mysql+pymysql://{user}:{password}@{host}:{port}/{dbname}'.format(**self._config),
27-
encoding='utf-8', pool_size=50, pool_recycle=500, pool_pre_ping=True, **kwargs
27+
pool_size=50, pool_recycle=500, pool_pre_ping=True, **kwargs
2828
)
2929
LOG.debug("MySQL connected: {host}:{port}/{dbname}".format(**self._config))
3030
except Exception as e:

0 commit comments

Comments
 (0)