Help connecting to MariaDB Database

I’m working on setting up a network containing a database, Ignition Server, and a few clients. I’m using a few Raspberry Pi’s to achieve this. I’ve managed to get the database installed on one Pi and Ignition on another. When I try and connect Ignition the the MariaDB database I get an error saying it refused to connect. I’m new to databases and have not been able to find where it issue is. I suspect it is in the database security settings.

The error message I get is below. I can post the more detailed version if it would be helpful.
Cannot create PoolableConnectionFactory (Could not connect to address=(host= : Connection refused (Connection refused))


Try this: