Is it possible split the server and database?

Carlos Colque4 years ago

Hi, I would like to know if is it possible have a server only with database default abd other with web interface?

Anton Tananaev4 years ago

Yes, of course.

Carlos Colque4 years ago

How should be the url?, I means for example, the server that have the database is 174.333.23.4 and my application server is 45.432.33.5, the url of database should be "jdbc:h2://174.333.23.4/data/database/"?
thanks you for your help.

Anton Tananaev4 years ago

Not sure if you can do it with H2 database. I would recommend using MySQL instead:

https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-jdbc-url-format.html