Disable autocommit on MySQL command line / console

September 13th, 2009 § 0 comments

Once you have a mysql console / command line / prompt:

SET autocommit=0;

E.g.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 53
Server version: 5.0.45 Source distribution
 
Typehelp;or ‘\h’ for help. Type ‘\c’ to clear the buffer.
 
mysql> use your_db_here
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
 
Database changed
mysql> SET autocommit=0;
Query OK, 0 rows affected (0.00 sec)<strong></strong>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

What's this?

You are currently reading Disable autocommit on MySQL command line / console at humandoing software.

meta