I can access MariaDB. I created a user with a password. But I need to access it remotely. Can you teach me how to open port 3306?
So always check the docs - you'll learn more that way.
https://wiki.koozali.org/Mariadb105And, if it's not too much to ask, can you show an example of a connection via JDBC?
I have no experience of that. See the notes in the wiki on urls.
Also, bearing in mind your questions (Tomcat too) be VERY careful with what you are doing.
Exposing services remotely when you're not really sure of what you are doing is a rapid route to getting yourself hacked.
Always ask yourself "do I absolutely have to do this or is there a better way?"
As you haven't described what you are actually trying to achieve in either of your posts, I can see you becoming a XY Problem if you aren't careful...... I'm not trying to be unkind, just saving you from yourself!!
https://xyproblem.info/You may want to read this too.
https://forums.koozali.org/index.php/topic,54724.0.htmlTake a deep breath and start from the beginning!!