Add various db_url

This commit is contained in:
Fabian Affolter 2016-07-14 19:18:41 +02:00
parent dc826052a6
commit 1cb8e184cf
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -31,4 +31,13 @@ recorder:
Configuration variables: Configuration variables:
- **purge_days** (*Optional*): Delete events and states older than x days. - **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` |