@@ -90,8 +90,8 @@ If you only want to hide events from e.g. your history, take a look at the [`his
90
90
| Database engine | `db_url` |
91
91
| :---------------|:---------------------------------------------------------|
92
92
| SQLite | `sqlite:///PATH/TO/DB_NAME` |
93
- | MySQL | `mysql+pymysql ://SERVER_IP/DB_NAME` |
94
- | MySQL | `mysql+pymysql ://user:password@SERVER_IP/DB_NAME` |
93
+ | MySQL | `mysql://SERVER_IP/DB_NAME` |
94
+ | MySQL | `mysql://user:password@SERVER_IP/DB_NAME` |
95
95
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
96
96
| PostgreSQL | `postgresql://scott:tiger@SERVER_IP/DB_NAME` |
97
97
@@ -105,7 +105,7 @@ For MySQL you may have to install a few dependencies:
105
105
106
106
` ` ` bash
107
107
$ sudo apt-get install libmysqlclient-dev
108
- $ pip3 install pymysql
108
+ $ pip3 install mysqlclient
109
109
` ` `
110
110
If you are in a virtual environment, don't forget to activate it before installing the pymysql package.
111
111
@@ -114,7 +114,7 @@ pi@homeassistant:~ $ sudo -i
114
114
root@homeassistant:~# su homeassistant
115
115
homeassistant@homeassistant:/root$ cd /srv/homeassistant/homeassistant_venv/
116
116
homeassistant@homeassistant:/srv/homeassistant/homeassistant_venv$ source bin/activate
117
- (homeassistant_venv) homeassistant@homeassistant:/srv/homeassistant/homeassistant_venv$ pip3 install pymysql
117
+ (homeassistant_venv) homeassistant@homeassistant:/srv/homeassistant/homeassistant_venv$ pip3 install mysqlclient
118
118
` ` `
119
119
120
120
# ## {% linkable_title PostgreSQL %}
0 commit comments