Skip to content

Commit

Permalink
Update MysqlManager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mydayyy committed Jun 24, 2018
1 parent 1e60941 commit 1341587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bot/MysqlManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def connect_to_db(self, host, port, user, password, db):
self._db = db
try:
self._connection = pymysql.connect(host=host, port=port, user=user, passwd=password, db=db,
autocommit=True, charset='utf8', cursorclass=pymysql.cursors.DictCursor)
autocommit=True, charset='utf8mb4', cursorclass=pymysql.cursors.DictCursor)
self._cur = self._connection.cursor()
except pymysql.MySQLError as e:
if e.args[0] == 2003: # Could not connect to database
Expand Down

0 comments on commit 1341587

Please sign in to comment.