Setting transaction isolation level of MySQL
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SESSION
is optional, just limits the setting to the current session.READ UNCOMMITTED
is to be replaced with your desired level.
https://dev.mysql.com/doc/refman/8.0/en/set-transaction.html
Add session variable to connection string
Simply add it to the connection string, when connecting to the mysql database.
?sessionVariables=transaction_isolation='READ-COMMITTED'
You can check for the values of other isolation levels.