Use utf8mb4 charset and utf8mb4_general_ci collation

This commit is contained in:
Peter 2022-09-19 19:29:55 +02:00
parent 47359c4113
commit 852bf750ca
No known key found for this signature in database
GPG Key ID: A40EE5665510C9D5
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ try:
def query_mysql(query, headers = True, update = False):
while True:
try:
cnx = mysql.connector.connect(unix_socket = '/var/run/mysqld/mysqld.sock', user=os.environ.get('DBUSER'), passwd=os.environ.get('DBPASS'), database=os.environ.get('DBNAME'), charset="utf8")
cnx = mysql.connector.connect(unix_socket = '/var/run/mysqld/mysqld.sock', user=os.environ.get('DBUSER'), passwd=os.environ.get('DBPASS'), database=os.environ.get('DBNAME'), charset="utf8mb4", collation="utf8mb4_general_ci")
except Exception as ex:
print('%s - trying again...' % (ex))
time.sleep(3)

View File

@ -215,7 +215,7 @@ services:
- sogo
dovecot-mailcow:
image: mailcow/dovecot:1.19
image: mailcow/dovecot:1.20
depends_on:
- mysql-mailcow
dns: