Forums » MySQL » MySQL Discussion

Thread: best transaction commit config for MySQL

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: Nov 18, 2011 12:17 PM by: Mauritz Threads: [ Previous | Next ]
nic chidu

Posts: 7
Registered: 3/22/11
best transaction commit config for MySQL
Posted: Nov 17, 2011 11:05 AM
 
  Click to reply to this thread Reply

love toad for mysql (for sql server and oracle for that matter).

I use toad for mysql v6.0.0 to connect to MySQL 5.5 (primarily MyISAM tables).

I am trying to find the best way to configure toad for working with transactions
for basic select and update statements.

The default setting will prompt after a while whether I want to keep or rollback a transaction. I thought my updates have aleady been commited by MySQL. Weren't they?

So I tried setting AutoCommit off but now when I close the editor I am getting an alert saying you have uncommited changes. I hope this isn't true. I hope that all changes have been commited.

What's the best way here?

Thanks,

Nic


Mauritz

Posts: 313
Registered: 8/23/07
Re: best transaction commit config for MySQL
Posted: Nov 18, 2011 12:17 PM   in response to: nic chidu
 
  Click to reply to this thread Reply

Just FYI you are aware that MyISAM tables do not support transactions at all so the auto commit setting of Toad does not have any effect as long as this kind of table is used.

Also MySQL does not have any way of determining if an open transaction exist so we have to prompt if Auto Commit is off because we really don't know if a transaction exists (Keep in mind that just executing a SELECT can start a transaction).


Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums