mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-06-06 18:26:51 +00:00
Fix pyodbc
This commit is contained in:
parent
40017faf19
commit
650fa29e14
@ -138,7 +138,7 @@ Call the service `recorder.purge` to start a purge task which deletes events and
|
|||||||
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
|
| PostgreSQL | `postgresql://SERVER_IP/DB_NAME` |
|
||||||
| PostgreSQL | `postgresql://user:password@SERVER_IP/DB_NAME` |
|
| PostgreSQL | `postgresql://user:password@SERVER_IP/DB_NAME` |
|
||||||
| PostgreSQL (Socket) | `postgresql://@/DB_NAME` |
|
| PostgreSQL (Socket) | `postgresql://@/DB_NAME` |
|
||||||
| MS SQL Server | `mssql+pymssql://user:password@SERVER_IP/DB_NAME?charset=utf8` |
|
| MS SQL Server | `mssql+pyodbc://username:password@dsnname` |
|
||||||
|
|
||||||
<div class='note'>
|
<div class='note'>
|
||||||
|
|
||||||
@ -250,8 +250,8 @@ A service restart will work as well.
|
|||||||
For MS SQL Server you may have to install a few dependencies:
|
For MS SQL Server you may have to install a few dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get install freetds-dev
|
sudo apt-get install unixodbc-dev
|
||||||
pip3 install pymssql
|
pip3 install pyodbc
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are in a virtual environment, don't forget to activate it before installing the pymssql package.
|
If you are in a virtual environment, don't forget to activate it before installing the pymssql package.
|
||||||
@ -259,5 +259,5 @@ If you are in a virtual environment, don't forget to activate it before installi
|
|||||||
```bash
|
```bash
|
||||||
sudo -u homeassistant -H -s
|
sudo -u homeassistant -H -s
|
||||||
source /srv/homeassistant/bin/activate
|
source /srv/homeassistant/bin/activate
|
||||||
pip3 install pymssql
|
pip3 install pyodbc
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user