Skip to content
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
14 changes: 11 additions & 3 deletions source/_components/recorder.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ If you only want to hide events from e.g. your history, take a look at the [`his
| Database engine | `db_url` |
| :---------------|:---------------------------------------------------------|
| SQLite | `sqlite:///PATH/TO/DB_NAME` |
| MySQL | `mysql://SERVER_IP/DB_NAME` |
| MySQL | `mysql://user:password@SERVER_IP/DB_NAME` |
| MySQL | `mysql+pymysql://SERVER_IP/DB_NAME` |
| MySQL           | `mysql+pymysql://user:password@SERVER_IP/DB_NAME`       |
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
| PostgreSQL | `postgresql://scott:tiger@SERVER_IP/DB_NAME` |

Expand All @@ -105,8 +105,16 @@ For MySQL you may have to install a few dependencies:

```bash
$ sudo apt-get install libmysqlclient-dev
$ pip3 install mysqlclient
$ pip3 install pymysql
```
If you are in a virtual environment, don't forget to activate it before installing the pymysql package.

```bash
pi@homeassistant:~ $ sudo -i
root@homeassistant:~# su homeassistant
homeassistant@homeassistant:/root$ cd /srv/homeassistant/homeassistant_venv/
homeassistant@homeassistant:/srv/homeassistant/homeassistant_venv$ source bin/activate
(homeassistant_venv) homeassistant@homeassistant:/srv/homeassistant/homeassistant_venv$ pip3 install pymysql

### {% linkable_title PostgreSQL %}

Expand Down