Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why aren commits working in MySQL?

MySQL working
0
Posted

Why aren commits working in MySQL?

0

Some versions of MySQL don’t support transactions at all. But modern versions do, if you create tables using a table type that supports transactions. The InnoDB table type is the most commonly used transaction-supporting table type. To use the InnoDB table type, use a create statement like the following: create table testtable (col1 int) type=innodb However, you may be surprised at MySQL’s behavior even when you’re using InnoDB tables or another table type that supports transactions. With most databases, if a client has a connection open and commits a set of inserts, updates or deletes in, then those changes are immediately visible to other clients using separate connections. MySQL doesn’t support this behavior, at least not with InnoDB tables. Instead, with MySQL, after beginning a transaction, the database will appear to be unaffected by queries run in other transactions until the transaction you are running is committed. So, if another client commits a set of inserts, you won’t see

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123