It seems that I gave you some missing information, please try this:
- Go to Database > create new database, and specify who can connect (local, everyone, specific IP) => try to connect again.
If it still not work, you can try the following:
- Go to App stote > MariaDB > Settings > Configuration > add skip-networking=0 & skip-bind-address to mysqld block, then save configuration and restart MariaDB
- Connect again with the database you created above (everyone option or specific IP)
My instruction base on this: https://mariadb.com/kb/en/configuring-mariadb-for-remote-client-access/, you do not need to care about my.cnf file, as using the configuration on aapanel dashboard is enough.
Goodluck!