Hello Erel!
I've already searched the 2 jars for the same class name and I've not found anything.
I'm not sure if I'm right because I've not opened the org.mariadb.jdbc.Driver to see if its internal name is com.mysql.jdbc.Driver
I've tried to connect without a connection pool to the old database only, but at the same time I was trying to connect to the new database with a connection pool.
The result was exactly the same.
I'll try to connect to both databases without a pool and I'll post the result.
If the result be the same, is there any way to connect to both DBs?
It's not impossible to be needed to find the source, change the internal class name and recompile the driver!