Fixing Charset Problem with mariadb 11.4
This commit is contained in:
1 parent
9e90e7dcc2
commit
b79a601b3d
1 file changed
+3
-1
@@ -28,7 +28,9 @@ mydb = mysql.connector.connect(
|
|||||||
host=pdnsconfig["default"]["gmysql-host"],
|
host=pdnsconfig["default"]["gmysql-host"],
|
||||||
user=pdnsconfig["default"]["gmysql-user"],
|
user=pdnsconfig["default"]["gmysql-user"],
|
||||||
password=pdnsconfig["default"]["gmysql-password"],
|
password=pdnsconfig["default"]["gmysql-password"],
|
||||||
database=pdnsconfig["default"]["gmysql-dbname"]
|
database=pdnsconfig["default"]["gmysql-dbname"],
|
||||||
|
collation="utf8mb4_unicode_ci",
|
||||||
|
charset="utf8mb4"
|
||||||
)
|
)
|
||||||
|
|
||||||
mycursor = mydb.cursor(dictionary=True)
|
mycursor = mydb.cursor(dictionary=True)
|
||||||
|
|||||||
Reference in new issue
Block a user