mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Update recorder docs - create PostgreSQL database with utf8 encoding (#16077)
* Update recorder docs - create PostgreSQL database with utf8 encoding ref https://github.com/home-assistant/core/issues/44595 The issue appears to be caused by the PostgreSQL database not using `utf8` encoding. PostgreSQL default is `SQL_ASCII`. Recreated the database with `utf8` encoding and the errors were not seen. * Update recorder.markdown Add in the change to the `db_url` option * Update recorder.markdown Spelling error
This commit is contained in:
parent
2c4f420f8e
commit
2c55d9c555
@ -319,6 +319,14 @@ Once Home Assistant finds the database, with the right level of permissions, all
|
||||
|
||||
### PostgreSQL
|
||||
|
||||
Create the PostgreSQL database with `utf8` encoding. The PostgreSQL default encoding is `SQL_ASCII`. From the `postgres` user account;
|
||||
```bash
|
||||
createdb -E utf8 DB_NAME
|
||||
```
|
||||
Where `DB_NAME` is the name of your database
|
||||
|
||||
If the Database in use is not `utf8`, adding `?client_encoding=utf8` to the `db_url` may solve any issue.
|
||||
|
||||
For PostgreSQL you may have to install a few dependencies:
|
||||
|
||||
```bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user