mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Add TLS and utf8mb4 for MariaDB (#19793)
This commit is contained in:
parent
4e43c3f0ce
commit
f094d68d53
@ -246,12 +246,18 @@ SQLite:
|
|||||||
MariaDB (omit pymysql):
|
MariaDB (omit pymysql):
|
||||||
description: >
|
description: >
|
||||||
`mysql://user:password@SERVER_IP/DB_NAME?charset=utf8mb4`
|
`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):
|
MariaDB (omit pymysql, Socket):
|
||||||
description: >
|
description: >
|
||||||
`mysql://user:password@SERVER_IP/DB_NAME?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4`
|
`mysql://user:password@SERVER_IP/DB_NAME?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4`
|
||||||
MySQL:
|
MySQL:
|
||||||
description: >
|
description: >
|
||||||
`mysql://user:password@SERVER_IP/DB_NAME?charset=utf8mb4`
|
`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):
|
MySQL (Socket):
|
||||||
description: >
|
description: >
|
||||||
`mysql://user:password@localhost/DB_NAME?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4`
|
`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
|
### 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.
|
If you are in a virtual environment, don't forget to activate it before installing the `mysqlclient` Python package described below.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user