Fixing Charset Problem with mariadb 11.4

This commit is contained in:
2025-01-23 15:15:15 +00:00
parent 9e90e7dcc2
commit b79a601b3d

View File

@@ -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)