Documentation: Update default table_scheme from "hass" to "homeassistant" (#24858)

This commit is contained in:
Colin 2022-11-09 14:17:42 +01:00 committed by GitHub
parent d0c449fa8c
commit 701cf2d7c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,10 +73,10 @@ Use `db_size` as column for value.
#### MariaDB/MySQL
Change `table_schema="hass"` to the name that you use as the database name, to ensure that your sensor will work properly.
Change `table_schema="homeassistant"` to the name that you use as the database name, to ensure that your sensor will work properly.
```sql
SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="hass" GROUP BY table_schema;
SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema;
```
Use `value` as column for value.