mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Recorder docs (#12961)
* Recorder docs * custom directory to postgres socket * fix indent * fix indent
This commit is contained in:
parent
b2f4d2803c
commit
3c05047c89
@ -154,18 +154,19 @@ Call the service `recorder.purge` to start a purge task which deletes events and
|
|||||||
|
|
||||||
## Custom database engines
|
## Custom database engines
|
||||||
|
|
||||||
| Database engine | `db_url` |
|
| Database engine | `db_url` |
|
||||||
| :--------------------- | :------------------------------------------------------------------------------------------- |
|
| :----------------------------- | :------------------------------------------------------------------------------------------- |
|
||||||
| SQLite | `sqlite:////PATH/TO/DB_NAME` |
|
| SQLite | `sqlite:////PATH/TO/DB_NAME` |
|
||||||
| MariaDB | `mysql+pymysql://SERVER_IP/DB_NAME?charset=utf8` |
|
| MariaDB | `mysql+pymysql://SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
| MariaDB | `mysql+pymysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
| MariaDB | `mysql+pymysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
| MariaDB (omit pymysql) | `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
| MariaDB (omit pymysql) | `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
| MySQL | `mysql://SERVER_IP/DB_NAME?charset=utf8` |
|
| MySQL | `mysql://SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
| MySQL | `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
| MySQL | `mysql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
||||||
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
|
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
|
||||||
| PostgreSQL | `postgresql://user:password@SERVER_IP/DB_NAME` |
|
| PostgreSQL | `postgresql://user:password@SERVER_IP/DB_NAME` |
|
||||||
| PostgreSQL (Socket) | `postgresql://@/DB_NAME` |
|
| PostgreSQL (Socket) | `postgresql://@/DB_NAME` |
|
||||||
| MS SQL Server | `mssql+pyodbc://username:password@SERVER_IP/DB_NAME?charset=utf8;DRIVER={DRIVER};Port=1433;` |
|
| PostgreSQL (Custom socket dir) | `postgresql://@/DB_NAME?host=/path/to/dir` |
|
||||||
|
| MS SQL Server | `mssql+pyodbc://username:password@SERVER_IP/DB_NAME?charset=utf8;DRIVER={DRIVER};Port=1433;` |
|
||||||
|
|
||||||
<div class='note'>
|
<div class='note'>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user