From 1cb8e184cfcd0c62ceb24fbef20f2d151ae0a01a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Jul 2016 19:18:41 +0200 Subject: [PATCH] Add various db_url --- source/_components/recorder.markdown | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/_components/recorder.markdown b/source/_components/recorder.markdown index 08274023247..989f984a360 100644 --- a/source/_components/recorder.markdown +++ b/source/_components/recorder.markdown @@ -31,4 +31,13 @@ recorder: Configuration variables: - **purge_days** (*Optional*): Delete events and states older than x days. -- **db_url** (*Optional*): The URL which point to your database. Eg. `mysql://localhost/homeassistant` +- **db_url** (*Optional*): The URL which point to your database. + +| Database engine | `db_url` | +| :---------------|:---------------------------------------------------------| +| SQLite | `sqlite:///PATH/TO/DB_NAME` | +| MySQL | `mysql://SERVER_IP/DB_NAME` | +| MySQL | `mysql://user:password@SERVER_IP/DB_NAME` | +| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` | +| PostgreSQL | `postgresql://scott:tiger@SERVER_IP/DB_NAME` | +