Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 973 Bytes

mariadb.md

File metadata and controls

39 lines (28 loc) · 973 Bytes

MariaDB

This script installs MariaDB and its dependencies for use with the recorder component in Home Assistant. No database or database user is created during this setup and will need to be created manually.

Installation

sudo hassbian-config install mariadb

Upgrade

No script available. Maybe you could write one?
If so, add a PR here when you are done:
homeassistant/hassbian-scripts

Additional info

Example of how to create the database:

sudo mysql -u root -p
CREATE DATABASE homeassistant;
CREATE USER 'homeassistantuser' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON homeassistant.* TO 'homeassistantuser';
FLUSH PRIVILEGES;
exit

The installation script was originally contributed by @Landrash.