Comments - About MariaDB Connector/J

5 years, 8 months ago Alan MacKenzie

Is there a driver connection string parameter to set the Isolation Level used for all connections? Something like the following jdbc:mysql:mymariadb:3306/MyDB?IsolationLevel=READ_UNCOMMITTED;

I've tried with combinations of IsolationLevel, isolation_level, transactionIsolation, transaction_isolation, tx_isolation, and with the parameter value as READ_COMMITTED, and READ UNCOMMITTED (with a space) but nothing sets the transaction level

 
5 years, 8 months ago Diego Dupin

If that can be set globally, you can set global variable tx_isolation There is no direct configuration option to do that, but you can set that with the option "sessionVariables". that must be something like jdbc:mariadb:host:3306/MyDB?sessionVariables=tx_isolation=READ_UNCOMMITTED;

 
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.