Fix pyodbc

This commit is contained in:
Pascal Vizeli 2019-12-12 23:58:34 +01:00 committed by GitHub
parent 40017faf19
commit 650fa29e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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://user:password@SERVER_IP/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'>
@ -250,8 +250,8 @@ A service restart will work as well.
For MS SQL Server you may have to install a few dependencies:
```bash
sudo apt-get install freetds-dev
pip3 install pymssql
sudo apt-get install unixodbc-dev
pip3 install pyodbc
```
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
sudo -u homeassistant -H -s
source /srv/homeassistant/bin/activate
pip3 install pymssql
pip3 install pyodbc
```