RPi Hassio + Synology NAS Maria DB For logging

I kept getting this error host 192.168.1.12 is not allowed to connect to this mariadb server

I fixed it by configuring MariaDB to allow remote connections. It was a pain in the butt because I kept restarting to see if my changes fixed anything. I ended up using MySQL Workbench to test my changes by connecting to the MariaDB on the Synology box

This is the command i use to enable remote connection

GRANT ALL PRIVILEGES ON *.* TO [email protected] IDENTIFIED BY ‘user_password‘ WITH GRANT OPTION;