Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Master #244

Merged
merged 3 commits into from
Mar 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions docs/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ If so, add a PR here when you are done:

Example of how to create the database:

```sql
sudo mysql -u root -p
CREATE DATABASE homeassistant;
CREATE USER 'homeassistantuser' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON homeassistant.* TO 'homeassistantuser';
FLUSH PRIVILEGES;
exit
```bash
sudo -s -u postgres
createuser homeassistant
createdb -O homeassistant homeassistant
```

Example configuration
```yaml
recorder:
db_url: postgresql://@/homeassistant #Connects to Postgresql via Unix socket, allowed by default
```

***
Expand Down