Home Assistant Add-on: MariaDB
MariaDB database for Home Assistant.
You can use this add-on to install MariaDB, which is an open-source (GPLv2 licensed) database. MariaDB can be used as the database backend for Home Assistant. For more information, please see MariaDB
Follow these steps to get the add-on installed on your system:
- Navigate in your Home Assistant frontend to Supervisor -> Add-on Store.
- Find the "MariaDB" add-on and click it.
- Click on the "INSTALL" button.
How to use
- Set the
passwordfield to something strong and unique.
- Start the add-on.
- Check the add-on log output to see the result.
recordercomponent to your Home Assistant configuration.
The MariaDB server add-on can be tweaked to your likings. This section describes each of the add-on configuration options.
Example add-on configuration:
databases: - homeassistant logins: - username: homeassistant password: PASSWORD rights: - username: homeassistant database: homeassistant
Database name, e.g.,
homeassistant. Multiple are allowed.
This section defines a create user definition in MariaDB. Create User documentation.
Database user login, e.g.,
homeassistant. User Name documentation.
Password for user login. This should be strong and unique.
This section grant privileges to users in MariaDB. Grant documentation.
This should be the same user name defined in
This should be the same database defined in
Home Assistant Configuration
MariaDB will be used by the
history components within Home Assistant. For more information about setting this up, see the recorder integration documentation for Home Assistant.
Example Home Assistant configuration:
recorder: db_url: mysql://homeassistant:password@core-mariadb/homeassistant?charset=utf8
You have several options to get them answered:
- The Home Assistant Discord Chat Server.
- The Home Assistant Community Forum.
- Join the Reddit subreddit in /r/homeassistant
In case you've found a bug, please open an issue on our GitHub.