mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add pymysql (fix the slalom around pymysql and mysqlclient)
This commit is contained in:
parent
b6d33e3a17
commit
313ffba048
@ -92,6 +92,8 @@ If you only want to hide events from e.g. your history, take a look at the [`his
|
|||||||
| SQLite | `sqlite:///PATH/TO/DB_NAME` |
|
| SQLite | `sqlite:///PATH/TO/DB_NAME` |
|
||||||
| MySQL | `mysql://SERVER_IP/DB_NAME` |
|
| MySQL | `mysql://SERVER_IP/DB_NAME` |
|
||||||
| MySQL | `mysql://user:password@SERVER_IP/DB_NAME` |
|
| MySQL | `mysql://user:password@SERVER_IP/DB_NAME` |
|
||||||
|
| MySQL (pymysql) | `mysql+pymysql://SERVER_IP/DB_NAME` |
|
||||||
|
| MySQL (pymysql) | `mysql+pymysql://user:password@SERVER_IP/DB_NAME` |
|
||||||
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
|
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
|
||||||
| PostgreSQL | `postgresql://scott:tiger@SERVER_IP/DB_NAME` |
|
| PostgreSQL | `postgresql://scott:tiger@SERVER_IP/DB_NAME` |
|
||||||
|
|
||||||
@ -99,9 +101,9 @@ If you only want to hide events from e.g. your history, take a look at the [`his
|
|||||||
|
|
||||||
Not all Python bindings for the chosen database engine can be installed directly. This section contains additional details which should help you to get it working.
|
Not all Python bindings for the chosen database engine can be installed directly. This section contains additional details which should help you to get it working.
|
||||||
|
|
||||||
### {% linkable_title MYSQL %}
|
### {% linkable_title MySQL %}
|
||||||
|
|
||||||
For MySQL you may have to install a few dependencies:
|
For MySQL you may have to install a few dependencies. You can choose between `pymysql` and `mysqlclient`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo apt-get install libmysqlclient-dev
|
$ sudo apt-get install libmysqlclient-dev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user