I am using Spring Boot 2.X with Hibernate 5 to connect two different MySQL databases (Bar and Foo) on different servers. I am trying t
Two databases (aka "catalogs") on the same server? Use only one connection. Then reference thus:
Foo.table1
Bar.table2
Use that syntax wherever you would have a simple table name.
Different servers
It gets messy if the data is not in the same machine. A couple of ideas:
FEDERATEDX
Engine.