How to connect to maxscale by using hibernate?

Hello, Can some specialists tell me how to connect to maxscale by using hibernate? Is it like "jdbc:mariadb:localhost:4006"? or other way to connect? Thank you.

Answer Answered by Markus Mäkelä in this comment.

Just change the hostname and port in the JDBC connection string to point to MaxScale. If MaxScale is on the same machine as the client and it listens to port 4006, then your example would be correct.


Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.