From b6f045f306a85224886cc690c9913b2d7f100688 Mon Sep 17 00:00:00 2001 From: TheBelgarion Date: Tue, 28 Jun 2022 18:27:10 +0200 Subject: [PATCH] Update recorder.markdown (#23220) --- source/_integrations/recorder.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_integrations/recorder.markdown b/source/_integrations/recorder.markdown index 19809a497bf..5b162a7be8d 100644 --- a/source/_integrations/recorder.markdown +++ b/source/_integrations/recorder.markdown @@ -362,6 +362,12 @@ pip3 install mysqlclient After installing the dependencies, it is required to create the database manually. During the startup, Home Assistant will look for the database specified in the `db_url`. If the database doesn't exist, it will not automatically create it for you. +```bash +SET GLOBAL default_storage_engine = 'InnoDB'; +CREATE DATABASE DB_NAME CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; +``` +Where `DB_NAME` is the name of your database + Once Home Assistant finds the database, with the right level of permissions, all the required tables will then be automatically created and the data will be populated accordingly. ### PostgreSQL