MariaDB Add-On as custom db


I’m trying to combine the MariaDB add-on with the Apache2 addon. I’ve got the Apache2 addon (from FaserF) running fine, and have created a custom DB in the MariaDB add-on.

However, and I feel extremely dense, I can’t work out where this DB is actually stored or how to access / query it. I have a very simple PHP site for my own scheduling purposes, which I used to run against a sqlite DB on my laptop (localhost).

I want to essentially replace this functionality with the DB hosted on my Pi so I can access it across all my devices, even if my laptop is off.

So can anyone point me in the direction of how I’d access / query this new database created using the MariaDB addon?