FW: With Ref to the set autocommit =1

2007-01-31 Thread sandeep . k
Hi Mark I would appreciate if we can define Under_extreme_conditions as you have mentioned in this link below http://archives.neohapsis.com/archives/mysql/2005-q3/0163.html I would appreciate if you can give us a workaround for this, which can eliminate this set autocommit =1 command being

deadlock with autocommit=1

2006-11-27 Thread Gu Lei
ULL | NULL | | BTREE | | | dbmail_messages | 1 | mailbox_status | 2 | status | A | 22850 | NULL | NULL | | BTREE | | +-++--+--++---+-+--++--++-+ 8 rows in set (0.01 sec) DBMAIL uses INNODB tables with autocommit=1. How could deadlocks happen?

Re: AUTOCOMMIT. displaying and setting

2006-11-21 Thread Visolve DB Team
Hi Yes, you can set the variabe per-connection. mysql > set SESSION autocommit=0; Check with two connections. For Transaction safe engines(such as InnoDB, BDB, or NDB Cluster),to disable autocommit mode for a single series of statements, use the START TRANSACTION or BEGIN statement. W

Re: AUTOCOMMIT. displaying and setting

2006-11-21 Thread Amit Dor-Shifer
Thanks! I played a bit init_connect. I'm not sure though how can I verify the autocommit value. You say 'by select'. Something like this? select @@AUTOCOMMIT; Because that still gives me a value of '1'. More important to me: Can this variable be set per-connection? If s

Re: AUTOCOMMIT. displaying and setting

2006-11-21 Thread Visolve DB Team
There is no global system variable to set Autocommit; but we can achieve the same with 'init_connect=SET AUTOCOMMIT=0'. This variable can be set from the mysql or in the commandline or in the option file. Like, mysql > SET GLOBAL init_connect='SET AUTOCOMMIT=0'; or mysql>

Re: Force a COMMIT on InnoDB tables? (set autocommit=0)

2006-03-30 Thread patrick
I've confirmed that this does affect ALL incoming connections. On 3/30/06, patrick <[EMAIL PROTECTED]> wrote: > Is there any way to make this the default behaviour? I did a Google > search, and it was suggested I put the following line in /etc/my.cnf: > > [mysqld] > init

Re: Force a COMMIT on InnoDB tables? (set autocommit=0)

2006-03-30 Thread patrick
Is there any way to make this the default behaviour? I did a Google search, and it was suggested I put the following line in /etc/my.cnf: [mysqld] init_connect='set autocommit=0' This works fine, but I worry that this will affect all incoming connections regardless of whether or no

Speed of InnoDB Insert with autocommit=1

2006-03-06 Thread Ady Wicaksono
Speed of InnoDB Insert with autocommit=1; Personal Test ! Linux : Fedora Core 4, kernel 2.6.11 mysql> \s -- mysql Ver 14.12 Distrib 5.0.18, for pc-linux-gnu (i686) using readline 5.0 Connection id: 2349 Current database: test Current user: [EM

Re: Autocommit and kill?

2004-11-23 Thread Paul DuBois
At 16:09 -0800 11/23/04, Gary Richardson wrote: Hey guys, We just had a small incident. I was hoping for confirmation on why it happened. A person updated a large table. They were trying to update one record but due to keyboard fumbling sent the update without a where statement. Left unchecked, i

Autocommit and kill?

2004-11-23 Thread Gary Richardson
Hey guys, We just had a small incident. I was hoping for confirmation on why it happened. A person updated a large table. They were trying to update one record but due to keyboard fumbling sent the update without a where statement. Left unchecked, it would have made a lot of records in the databa

RE: Disable the autocommit

2004-07-21 Thread Victor Pendleton
characters. For example, each client begins by default with autocommit mode enabled. There is no global server variable to specify that autocommit should be disabled by default, but init_connect can be used to achieve the same effect: SET GLOBAL init_connect='SET AUTOCOMMIT=0'; This variabl

Disable the autocommit

2004-07-21 Thread Terence
According to: http://dev.mysql.com/doc/mysql/en/COMMIT.html >With START TRANSACTION, autocommit remains disabled until you end the >transaction with COMMIT or ROLLBACK. The autocommit mode then reverts >to its previous state. Is there anyway to disable the revert? I don't want

Re: RES: Is possible Autocommit within my.ini?

2004-05-21 Thread Paul DuBois
At 15:14 -0300 5/21/04, Renato Cramer wrote: I'm using MySQL 4.1.0 and InnoDB tables. I need set autocommit=0 and want do via option file. I know what "SET AUTOCOMMIT=0" works fine, however I prefer by the option file. Is possible? In 4.1.0, no. You'll be able to do th

Re: Is possible Autocommit within my.ini?

2004-05-21 Thread Paul DuBois
At 14:34 -0300 5/21/04, Renato Cramer wrote: Hi All, I already looking for Autocommit within my.ini at documentation and archives of the list, and not found. Anybody can help me? What is it that you want to accomplish? -- Paul DuBois, MySQL Documentation Team Madison, Wisconsin, USA MySQL AB

Is possible Autocommit within my.ini?

2004-05-21 Thread Renato Cramer
Hi All, I already looking for Autocommit within my.ini at documentation and archives of the list, and not found. Anybody can help me? Thanks in advance, Renato Cramer -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

AUTOCOMMIT and MySQL 4.1, returning nothing on a valid query

2004-03-22 Thread Parker, Eddie
OK, the scenario I've got is that I'm using MySQL 4.1, and Python (using mysql-python to access the server). I have a script like the following: conn = MySQLdb.connect() # Basic parameters cursor = conn.cursor() cursor.execute("SET AUTOCOMMIT=0") cursor.ex

About "AUTOCOMMIT" Variable

2003-08-31 Thread ÜÇGÜN
Hi Friends, I have a problem with "AUTOCOMMIT" Variable.I'm using release 4.0.14.When I change default-character-set variable to "latin5" I can't execute "SET AUTOCOMMIT = 1 | 0" command.It returns "SQL Error:Variable AUTOCOMMIT does not exist"

Re: set autocommit

2003-06-30 Thread Bruce Feist
artem wrote: please clarify use of set autocommit Here's an unsolicited opinion: AVOID using autocommit within applications. Based on my experiences with other DBMSs, it's a very likely source of hard-to-find program bugs. The problem occurs when it's turned on and o

Re: set autocommit

2003-06-30 Thread Paul DuBois
At 9:21 +0300 6/30/03, artem wrote: please clarify use of set autocommit SET AUTOCOMMIT = 0 ==> mean start transaction ... - some actions COMMIT ==> transaction end now to return to autocommit mode just one line: SET AUTOCOMMIT = 1 or two? SET AUTOCOMMIT = 1

Re: set autocommit

2003-06-30 Thread Nils Valentin
Hi Artem, I understood the AUTOCOMMIT command different. SET AUTOCOMMIT = 0 ==> deactivate AUTOCOMMIT SET AUTOCOMMIT = 1 ==> activate AUTOCOMMIT The commands BEGIN . some instructions COMMIT are used to start or finish a transaction. Anybody, please correct me if I talk r

set autocommit

2003-06-29 Thread artem
please clarify use of set autocommit SET AUTOCOMMIT = 0 ==> mean start transaction ... - some actions COMMIT ==> transaction end now to return to autocommit mode just one line: SET AUTOCOMMIT = 1 or two? SET AUTOCOMMIT = 1

Re: Disable autocommit by default

2003-01-18 Thread Heikki Tuuri
Philip, Jani promised that in February 2003 you can set autocommit=0 globally in my.cnf. I am carbon copying this to Jani. The feature is widely requested. Regards, Heikki Subject: Disable autocommit by default From: Philip Molter Date: Thu, 16 Jan 2003 15:41:47 -0600

Disable autocommit by default

2003-01-16 Thread Philip Molter
I want to disable autocommit for all command-line client connections by default (through the mysql> prompt). I believe I can do this in the [client] section of the my.cnf config file, but I have no clue how. Three questions: 1) How? 2) Will it affect other client processes, such as th

Re: global autocommit setting

2002-12-17 Thread Jani Tolonen
Hi! Heikki Tuuri writes: > Jari, > > I am Cc:ing this to [EMAIL PROTECTED], so that other readers can follow > the discussion. > > There is still no my.cnf option to set AUTOCOMMIT=0 globally though users > have requested it a lot. > > I think that 4.1 will su

Re: global autocommit setting

2002-12-16 Thread Heikki Tuuri
Jari, I am Cc:ing this to [EMAIL PROTECTED], so that other readers can follow the discussion. There is still no my.cnf option to set AUTOCOMMIT=0 globally though users have requested it a lot. I think that 4.1 will support a SQL script which is automatically executed for all new connections

Re: How to setup autocommit off in my.cnf?

2002-11-11 Thread Peter Brawley
> Anyone of you know the parameter for my.cnf to turn autocommit off for > innoDB transaction-safe tables? Not settable in my.cnf/ini AFAIK. In MySQL write ... SET @@local.autocommit=0|1 PB - Before posting, please

How to setup autocommit off in my.cnf?

2002-11-11 Thread Jannie Qu
Hi, all, Greetings. sql, query. Anyone of you know the parameter for my.cnf to turn autocommit off for innoDB transaction-safe tables? Thank you, Jing _ MSN 8 with e-mail virus protection service: 2 months FREE* http

Autocommit in MySql/Innodb

2002-10-09 Thread carlos.jacob
How can i take AUTOCOMMIT default in my MYSQL Configuration with Innodb tablespace? Every time i login at MySQL i have to type SET AUTOCOMMIT = 0. I want this parameter be always 0. I don´t use AUTOCOMMIT. Thanks Jacob --- UOL Eleições 2002 - Todos os lances da disputa política http

Re: how to set autocommit

2002-07-29 Thread Heikki Tuuri
Ben, - Original Message - From: "Ben Goswami" <[EMAIL PROTECTED]> To: "Heikki Tuuri" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 4:40 PM Subject: Re: how to set autocommit > Heikki , > Thanks for your reply. So wh

Re: how to set autocommit

2002-07-29 Thread Ben Goswami
Heikki , Thanks for your reply. So what should I do in the mean time. Is there a work around. 1. Can I put in the connect string? like DBI->connect("DBI:mysql:database=devdb;host=localhost", {'RaiseError' => 1, 'AutoCommit => 0})

Re: how to set autocommit

2002-07-28 Thread Heikki Tuuri
day, July 29, 2002 7:52 AM Subject: how to set autocommit > Hi, > Where should I change the autocommit setting to 0 (i.e no Autocommit). I'm > inserting row from perl script using DBI. I would like to bring up mySQL > server with autocommit false, so that I can explicitly commit from

how to set autocommit

2002-07-28 Thread Ben Goswami
Hi, Where should I change the autocommit setting to 0 (i.e no Autocommit). I'm inserting row from perl script using DBI. I would like to bring up mySQL server with autocommit false, so that I can explicitly commit from the front end. But with lot of research in various docs I could not

Re: Autocommit

2002-06-12 Thread Calin Pop
You're right Serge, there should be a global option to allow you to set AUTOCOMMIT to 0. InnoDB is used for transactional paradigm, so it's obvious you watn to do yourself the "commit", this should be the default behavior for transactional tables. If you get the an

Re: Autocommit

2002-06-12 Thread Serge Paquin
Hello Oliver, Thanks for the suggestion but that was not what I am looking for. I know about the command SET AUTOCOMMIT=0 but that is a session level solution. I want transactions to be on always on the database for every session. i.e. the default to 0 rather than the default of 1 as

Re: Autocommit

2002-06-11 Thread Oliver Vecernik
Serge Paquin wrote: > Hello, > > I am setting up mysqld-max with InnoDB Tables. How can I set autocommit to >off? I want this a global option for the DBMS. Did you read the docs? There is even an example (chapter 7.5.8

Autocommit

2002-06-11 Thread Serge Paquin
Hello, I am setting up mysqld-max with InnoDB Tables. How can I set autocommit to off? I want this a global option for the DBMS. Thanks, Serge. - Before posting, please check: http://www.mysql.com/manual.php

Re: AUTOCOMMIT and FLUSH?

2002-05-12 Thread Mark
- Original Message - From: "Paul DuBois" <[EMAIL PROTECTED]> To: "Mark" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, May 12, 2002 2:39 AM Subject: Re: AUTOCOMMIT and FLUSH? > At 2:16 +0200 5/12/02, Mark wrote: > > > Hello fol

Re: AUTOCOMMIT and FLUSH?

2002-05-11 Thread Paul DuBois
At 2:16 +0200 5/12/02, Mark wrote: >Hello folks, > >Could somebody please tell me what the effectual difference is between >AUTOCOMMIT and FLUSH? The manual says, "By default, MySQL runs in autocommit >mode. This means that as soon as you execute an update, MySQL will store

AUTOCOMMIT and FLUSH?

2002-05-11 Thread Mark
Hello folks, Could somebody please tell me what the effectual difference is between AUTOCOMMIT and FLUSH? The manual says, "By default, MySQL runs in autocommit mode. This means that as soon as you execute an update, MySQL will store the update on disk." Good. But what is left to

Re: Mysql 4.0.1 autocommit bug with Innodb table

2002-01-30 Thread Michael Widenius
ts "1192 Can't execute the given command because you have active >> locked >> tables or a active transaction" >> note that I have already send a command "set autocommit=1" to mysql server, > I don't >> know whether I am wrong, but it seems an

Re: Mysql 4.0.1 autocommit bug with Innodb table

2002-01-29 Thread Michael Widenius
ows you to do the Heikki> TRUNCATE? If you are using AUTOCOMMIT=1 then the COMMIT should not be necessary. I will check this (and add a test case for this in our benchmark suite) before releasing 4.0.2. Regards, Monty - Before

Re: Mysql 4.0.1 autocommit bug with Innodb table

2002-01-27 Thread Heikki Tuuri
d the result set, then execute a >"truncate table anothertable", >it reports "1192 Can't execute the given command because you have active locked >tables or a active transaction" >note that I have already send a command "set autocommit=1" to mysql

Mysql 4.0.1 autocommit bug with Innodb table

2002-01-27 Thread Yifeng
"1192 Can't execute the given command because you have active locked tables or a active transaction" note that I have already send a command "set autocommit=1" to mysql server, I don't know whether I am wrong, but it seems an Innodb bug. --

MySQL & PHP & autocommit=OFF how?

2002-01-10 Thread Sait Karalar
  Hi,   I read the documents, but still I confuse how to use COMIT/ROLLBACK.   I have 3 tables, I want to INSERT a data into 1st. table then, if it is OK, I want to UPDATE second table, and if it is OK, then a data from 3. table will b

Re: Turn off autocommit

2001-12-07 Thread Miguel Angel Solórzano
At 17:13 05/12/01 -0600, Demirchyan Oganes-AOD098 wrote: Hi, >Hi everyone, > >I'm using InnoDB tables, and I would like to turn the auto commit off. >I do SET AUTOCOMMIT=0 in my.ini file. > >And when I restart the server, it won't start. This condition should be exe

Turn off autocommit

2001-12-05 Thread Demirchyan Oganes-AOD098
Hi everyone, I'm using InnoDB tables, and I would like to turn the auto commit off. I do SET AUTOCOMMIT=0 in my.ini file. And when I restart the server, it won't start. Does anyone know why? Regards, Oganes Demirchyan Motorola Life Science 757 S.Raymond Pasadena, CA 91105 Tel: 62

Re: innoDB , autocommit = 0, lock

2001-09-14 Thread Heikki Tuuri
n C or C++, and should show how you get >> the C API working. >> >> Unfortunately there is no global command >> to set all sessions to autocommit = 0. >> There has been discussion of adding such >> an option. >> >> Regards, >> >> Heik

Re:INNOBASE, autocommit = 0, and C API ( mysql_real_query )

2001-09-13 Thread Heikki Tuuri
Bernard, you could look at the source code of the mysql client. I think it is written in C or C++, and should show how you get the C API working. Unfortunately there is no global command to set all sessions to autocommit = 0. There has been discussion of adding such an option. Regards

INNOBASE, autocommit = 0, and C API ( mysql_real_query )

2001-09-13 Thread Bernard Chambon
Hello, I am using Innobase with MySql version 3.23.39 under Linux and want to run WITHOUT autocommit mode (<= autocommit=0 for using commit/roolback instructions) I have made a test whith 2 INTERACTIVE MySql sessions and this works fine. BUT, when I use the C API (mysql_real_query), it DOES

How I can set Autocommit = 0 ? in myodbc

2001-05-19 Thread songmailbox
I use innodb and I want to set autocommit = 0 ( not autocommit ). I can do it on mysql shell , mysqlfront , on but application that use myODBC I can't . I try to set on my.cnf but mysqld-max say that don't have this variable to set ? Thank you Song

Re:INNO How to set autocommit=0 as default for mysql

2001-05-08 Thread Heikki Tuuri
Andre, I did not find such an option in my.cnf. But I agree that there should be one. I will ask Monty to add that option to my.cnf. Regards, Heikki . Hi, I would like to set autocommit = 0 as the default value when running the mysql frontend. (Maybe with

INNO How to set autocommit=0 as default for mysql

2001-05-08 Thread Andre . Konopka
Hi, I would like to set autocommit = 0 as the default value when running the mysql frontend. (Maybe with an entry in my.cnf) Is that possible ??? Andre -- E-Mail: [EMAIL PROTECTED] Date: 08-May-01 Time: 15:42:09 () Join the ASCII ribbon campaign against html

autocommit question

2001-04-03 Thread Albert L. Ting
Just started using mysql and was wondering if there's a way to specify the autocommit mode on a per database rather on a per server. I know I can using the BEGIN/COMMIT to turn off autocommit for a particular call. But it would be nice to have a coarser granularity. Thanks, A

Q: How to set autocommit in my.cnf and etc

2001-04-01 Thread Seung Yoo
Hi, everybody, I have a couple of quesitons 1. From the mysql manual, if I want to use 'autocommit=0', it says that I type 'set autocommit=0' and this only applies to a session. So, when I want to back up data using 'shell>mysql datablse < data.sql', do

Q: How to set autocommit=0 while shell>mysql datablse < data.sql

2001-03-30 Thread Seung Yoo
Hi, everybody, I have a couple of quesitons 1. From the mysql manual, if I want to use 'autocommit=0', it says that I type 'set autocommit=0' and this only applies to a session. So, when I want to back up data using 'shell>mysql datablse < data.sql', do

start without autocommit;

2001-03-28 Thread muhammed najmi
hi I am using mysql as the database for j2ee server.I want to start mysql in non autocommit mode that is autocommit=0.How to start mysql by setting this variable to 0; please give me a quick reply najmi Get free email

Re: autocommit == innobase_flush_log_at_trx_commit ?

2001-03-24 Thread Dan Nelson
In the last episode (Mar 24), └»╜┬╚╞ said: > Hi, I have a newbie question. Is "autocommit == innobase_flush_log_at_trx_commit" ? No; autocommit is more of a logical SQL operation, where innobase_flush_log_at_trx_commit causes a physical action. With autocommit unset, you can

Re: autocommit == innobase_flush_log_at_trx_commit" ?

2001-03-24 Thread Heikki Tuuri
Hi! No, autocommit means that the system automatically issues a commit after each SQL statement. You do not have to explicitly write 'COMMIT' in your application. If you set innobase_flush_log_at_trx_commit=0, then Innobase will not flush the log to disk immediately at a commit, a

autocommit == innobase_flush_log_at_trx_commit ?

2001-03-23 Thread 유승훈
Hi, I have a newbie question. Is "autocommit == innobase_flush_log_at_trx_commit" ? Thanks. Ryu

autocommit == innobase_flush_log_at_trx_commit ?

2001-03-23 Thread 유승훈
Hi, I have a newbie question. Is "autocommit == innobase_flush_log_at_trx_commit" ? Thanks. Ryu