From f094d68d53faca239b85b8432ba9c966215fdd90 Mon Sep 17 00:00:00 2001 From: Daniel Rheinbay Date: Sun, 17 Oct 2021 19:12:53 +0200 Subject: [PATCH] Add TLS and utf8mb4 for MariaDB (#19793) --- source/_integrations/recorder.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/_integrations/recorder.markdown b/source/_integrations/recorder.markdown index 2d20498c83b..0eff8d6d93f 100644 --- a/source/_integrations/recorder.markdown +++ b/source/_integrations/recorder.markdown @@ -246,12 +246,18 @@ SQLite: MariaDB (omit pymysql): description: > `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8mb4` +MariaDB (omit pymysql, using TLS encryption): + description: > + `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8mb4;ssl=true` MariaDB (omit pymysql, Socket): description: > `mysql://user:password@SERVER_IP/DB_NAME?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4` MySQL: description: > `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8mb4` +MySQL (using TLS encryption): + description: > + `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8mb4;ssl=true` MySQL (Socket): description: > `mysql://user:password@localhost/DB_NAME?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4` @@ -340,6 +346,7 @@ Not all Python bindings for the chosen database engine can be installed directly ### MariaDB and MySQL +Make sure the default character set of your database server is set to `utf8mb4` (see [MariaDB documentation](https://mariadb.com/kb/en/setting-character-sets-and-collations/#example-changing-the-default-character-set-to-utf-8)). If you are in a virtual environment, don't forget to activate it before installing the `mysqlclient` Python package described below. ```bash