There are currently some open bugs about this issue (https://bugs.mysql.com/bug.php?id=69800, https://bugs.mysql.com/bug.php?id=53341), and some questions in the subject (http://stackoverflow.com/questions/25268782/mysql-workbench-and-default-session-isolation-levelhttps://stackoverflow.com/questions/25268782/mysql-workbench-and-default-session-isolation-level, http://stackoverflow.com/questions/26208007/mysql-workbench-session-does-not-see-updates-to-the-databasehttps://stackoverflow.com/questions/26208007/mysql-workbench-session-does-not-see-updates-to-the-database), but none of these have an actual answer to why this happens or suggests a workaround.
3 | replaced http://stackoverflow.com/ with https://stackoverflow.com/ | ||
There are currently some open bugs about this issue (https://bugs.mysql.com/bug.php?id=69800, https://bugs.mysql.com/bug.php?id=53341), and some questions in the subject (http://stackoverflow.com/questions/25268782/mysql-workbench-and-default-session-isolation-level, http://stackoverflow.com/questions/26208007/mysql-workbench-session-does-not-see-updates-to-the-database), but none of these have an actual answer to why this happens or suggests a workaround. There are currently some open bugs about this issue (https://bugs.mysql.com/bug.php?id=69800, https://bugs.mysql.com/bug.php?id=53341), and some questions in the subject (https://stackoverflow.com/questions/25268782/mysql-workbench-and-default-session-isolation-level, https://stackoverflow.com/questions/26208007/mysql-workbench-session-does-not-see-updates-to-the-database), but none of these have an actual answer to why this happens or suggests a workaround. |
|||
2 | added 933 characters in body | ||
UPDATE 2017-03-26:as @RickJames suggested i turned on general log on one instance and found the following commands being executed when i open a new MySQL Workbench connection:
So it confirms that MySQL workbench does indeed set the transaction isolation level. UPDATE 2017-03-26:as @RickJames suggested i turned on general log on one instance and found the following commands being executed when i open a new MySQL Workbench connection:
So it confirms that MySQL workbench does indeed set the transaction isolation level. |
|||
1 | |||
transaction isolation in MySQL workbenchMySQL Workbench has a bug where every new created session receives default session parameter values regardless of the server's definition for that parameter. For example, when the server's "transaction-isolation" parameter is set to "READ-COMMITTED", connecting with workbench and issuing the command "show variables like 'tx_isolation'" will result in "REPEATABLE-READ", which is MySQL's default, but not this server's configuration (connecting with other clients like command-line or python results in the expected behavior). There are currently some open bugs about this issue (https://bugs.mysql.com/bug.php?id=69800, https://bugs.mysql.com/bug.php?id=53341), and some questions in the subject (http://stackoverflow.com/questions/25268782/mysql-workbench-and-default-session-isolation-level, http://stackoverflow.com/questions/26208007/mysql-workbench-session-does-not-see-updates-to-the-database), but none of these have an actual answer to why this happens or suggests a workaround. The issues in my organization is that at possibly any moment, a user may connect to one of our databases with MySQL workbench and execute a "SELECT" query that takes a very long time (for the sake of the example, a few hours long). Since the user's session is in "REPEATABLE-READ" mode the query will lock DML statements on the selected tables, regardless of it's auto-commit configuration status. Which leads to my question:How can MySQL Workbench "new session parameters" can be configured? I have already tried the following:
Issues encountered on both windows 7 and ubuntu 14.04. Thanks |
|||