Configuration MySQL Port

Hello
I’ve got two MySQL instances, one for MySQL (3306) and the second for MariaDB (3307)
Is it possible to configure in hibernate.cfg file a different Port for MySQL 3307 instead of 3306 like this :

<property name="connection.url">jdbc:mysql://localhost/xwiki?useSSL=false</property>
<property name="connection.port">3307</property>
<property name="connection.username">xwikip</property>
<property name="connection.password">xwikip</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="dbcp.poolPreparedStatements">true</property>
<property name="dbcp.maxOpenPreparedStatements">20</property>

Thanks for your help

Hi

Just add the port in the URL, use jdbc:mysql://localhost:3307/ …