MyISAM no table lock

2010-02-08 Thread Steve Staples
Hi there. I was reading last week (and of course, i can't find it now) something about 'nicifying' a query, so taht it doesn't lock the table... How is this done? I've read so much stuff lately, that i can't find it for the life of me, and google is not being my friend :( Steve. -- MySQL

Re: MyISAM no table lock

2010-02-08 Thread Johan De Meersman
On Mon, Feb 8, 2010 at 3:37 PM, Steve Staples sstap...@mnsi.net wrote: Hi there. I was reading last week (and of course, i can't find it now) something about 'nicifying' a query, so taht it doesn't lock the table... How is this done? I've read so much stuff lately, that i can't find it

RE: MyISAM no table lock

2010-02-08 Thread Steve Staples
[mailto:vegiv...@gmail.com] On Behalf Of Johan De Meersman Sent: February 8, 2010 10:01 AM To: mysql@lists.mysql.com Subject: Re: MyISAM no table lock On Mon, Feb 8, 2010 at 3:37 PM, Steve Staples sstap...@mnsi.net wrote: Hi there. I was reading last week (and of course, i can't find it now) something

Table Lock

2008-12-18 Thread sangprabv
Hi, Is that true that MySQL lock table on each query? Does it means will cause slow speed? Then how to avoid table lock and speed up MySQL? TIA. Willy The Public is merely a multiplied me. -- Mark Twain -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Table Lock

2008-12-18 Thread Joerg Bruehe
Hi! sangprabv wrote: Hi, Is that true that MySQL lock table on each query? Does it means will cause slow speed? Then how to avoid table lock and speed up MySQL? TIA. You need to read up about the different table handlers available. They have different properties, including the locking

Re: table lock

2008-03-07 Thread Raj Shekhar
Eli Shemer wrote: The web site on the other end reads all the data from the table and generates standard html/css code with the information from the table. How can I make all of the apache child processes wait for the external script to complete its operation once it has started?

table lock

2008-03-02 Thread Eli Shemer
Hey there I have an external script that generates a lot of data and dumps it into a table. Prior to this ,it removes all the data in this specific table. It requires both read and write privileges. The web site on the other end reads all the data from the table and generates standard

Re: table lock

2008-03-02 Thread Martin Gainty
such such as described here http://httpd.apache.org/docs/2.0/mod/mpm_common.html#lockfile Martin - Original Message - From: Eli Shemer [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Sunday, March 02, 2008 10:06 AM Subject: table lock Hey there I have an external script that generates

Re: Question: How to fix TABLE LOCK table and lock mode AUTO-INC waiting ? one more question, please

2007-07-20 Thread Mariella Petrini
to roll back for table lock on AUTO_INC The behavior observed is most likely related to this bug report: http://bugs.mysql.com/bug.php?id=16979 Regards, -sunny Oracle/Innobase. Choose

Question, please: How to fix TABLE LOCK table and lock mode AUTO-INC waiting ?

2007-07-19 Thread Mariella Petrini
Hi, I have been using 5.0.32 MySQL on Debian. Everything worked properly. DRBD has been added and configure with MySQL and restarted. The tables used are InnoDB type and use auto_increment. After that during INSERTs and UPDATEs innodb started to roll back for table lock on AUTO_INC How could

FLUSH TABLE LOCK READ

2007-05-30 Thread Ananda Kumar
Hi All, This question just for information sake. If i do flush table lock read; Any changes happening on tables during this period, will it be viewable by another user or will the user have to wait till the lock is released to see the new changes And once the lock is released, does mysql apply

Re: FLUSH TABLE LOCK READ

2007-05-30 Thread Baron Schwartz
Hi, Ananda Kumar wrote: Hi All, This question just for information sake. If i do flush table lock read; I think you mean FLUSH TABLES WITH READ LOCK? Any changes happening on tables during this period, will it be viewable by another user or will the user have to wait till the lock

Re: FLUSH TABLE LOCK READ

2007-05-30 Thread Ananda Kumar
just for information sake. If i do flush table lock read; I think you mean FLUSH TABLES WITH READ LOCK? Any changes happening on tables during this period, will it be viewable by another user or will the user have to wait till the lock is released to see the new changes And once the lock

Re: FLUSH TABLE LOCK READ

2007-05-30 Thread Baron Schwartz
. And the changes will be in bin-log till the READ lock is held. regards anandkl On 5/30/07, Baron Schwartz [EMAIL PROTECTED] wrote: Hi, Ananda Kumar wrote: Hi All, This question just for information sake. If i do flush table lock read; I think you mean FLUSH TABLES WITH READ LOCK? Any

RE: InnoDB table lock on INSERT

2007-05-01 Thread Power, Paul C.
Baron- Thank you for the InnoDB Lock Monitor pointer. I now have a greate deal of informaiton to digest. I will try innotop when I have a chance. :) -Paul Hi Paul, Power, Paul C. wrote: I have an INSERT waiting for a table lock, and i do not understand why. ---TRANSACTION 0

InnoDB table lock on INSERT

2007-04-30 Thread Power, Paul C.
I have an INSERT waiting for a table lock, and i do not understand why. ---TRANSACTION 0 308691, ACTIVE 5 sec, process no 8876, OS thread id 1296547864 inserting mysql tables in use 1, locked 1 LOCK WAIT 1 lock struct(s), heap size 320 MySQL thread id 79126, query id 1113322 bil.oneeighty.com

Re: InnoDB table lock on INSERT

2007-04-30 Thread Baron Schwartz
Hi Paul, Power, Paul C. wrote: I have an INSERT waiting for a table lock, and i do not understand why. ---TRANSACTION 0 308691, ACTIVE 5 sec, process no 8876, OS thread id 1296547864 inserting mysql tables in use 1, locked 1 LOCK WAIT 1 lock struct(s), heap size 320 MySQL thread id 79126

Random Table Lock

2006-07-17 Thread mysql
I am stumped by a table lock issue. First, some details. I am running MySQL 5.0.22 on an AMD 64 machine. mysqld -V outputs: /usr/local/libexec/mysqld Ver 5.0.22-debug-log for unknown-linux-gnu on x86_64 (Source distribution) uname -a: 2.6.8-11-amd64-generic #1 Wed Jun 1 00:42:47 CEST 2005

Re: Table Lock issue on insert

2006-01-03 Thread Heikki Tuuri
, 2006 9:31 PM Subject: Re: Table Lock issue on insert Hi John, I have looked around a bit and you might be interested in this part: InnoDB: Do not intentionally crash mysqld if the buffer pool is exhausted by the lock table; return error 1206 instead ... check this link: http://dev.mysql.com

Re: Table Lock issue on insert

2006-01-02 Thread Danny Stolle
[mailto:[EMAIL PROTECTED] Sent: Saturday, December 31, 2005 2:59 AM To: Brittingham, John; mysql@lists.mysql.com Subject: Re: Table Lock issue on insert Hi John, What kind of engine are you using on your table? MyIsam or InnoDB or are you using merged tables? If you query your system variables

Re: Table Lock issue on insert

2006-01-02 Thread Danny Stolle
Message- From: Danny Stolle [mailto:[EMAIL PROTECTED] Sent: Saturday, December 31, 2005 2:59 AM To: Brittingham, John; mysql@lists.mysql.com Subject: Re: Table Lock issue on insert Hi John, What kind of engine are you using on your table? MyIsam or InnoDB or are you using merged tables? If you

Re: Table Lock issue on insert

2005-12-31 Thread Danny Stolle
; is the error gone? Danny Brittingham, John wrote: I am having trouble with table lock. The query is as follows: INSERT INTO USERS_PER_HOUR SELECT count( DISTINCT ( CUID ) ),`TV_LOG_DATE`,`TV_LOG_TIME`, INTERFACE_ID FROM `TV_LOG_ALL` group by 2,3; I keep getting this error: #1206

Table Lock issue on insert

2005-12-30 Thread Brittingham, John
I am having trouble with table lock. The query is as follows: INSERT INTO USERS_PER_HOUR SELECT count( DISTINCT ( CUID ) ),`TV_LOG_DATE`,`TV_LOG_TIME`, INTERFACE_ID FROM `TV_LOG_ALL` group by 2,3; I keep getting this error: #1206 - The total number of locks exceeds the lock table size

Re: Why is this table lock?

2005-04-24 Thread Heikki Tuuri
Reto, InnoDB always does locking on the row level. The IS and IX table locks are 'intention locks'. They do not block anything, except full table lock requests (LOCK TABLES ... WRITE, for example). The main purpose of IX and IS is to show that someone is locking a row, or going to lock a row

Re: Why is this table lock?

2005-04-22 Thread kernel
Reto Breitenmoser wrote: Hi In the output from the show innodb monitor I can see, that I have a table lock on a table. But, I never set a table lock on a table (only row locks). Do I misinterpret the output or what causes this table lock? thanks Reto TRANSACTIONS

Why is this table lock?

2005-04-22 Thread Reto Breitenmoser
Hi In the output from the show innodb monitor I can see, that I have a table lock on a table. But, I never set a table lock on a table (only row locks). Do I misinterpret the output or what causes this table lock? thanks Reto TRANSACTIONS Trx id counter 0 95338708

Re: Can't get table lock (4.0.23 and InnoDB)

2005-02-20 Thread Heikki Tuuri
Nick, http://dev.mysql.com/doc/mysql/en/innodb-monitor.html you can use innodb_lock_monitor to find out who is locking the row. Best regards, Heikki Tuuri Innobase Oy Foreign keys, transactions, and row level locking for MySQL InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up

Can't get table lock (4.0.23 and InnoDB)

2005-02-18 Thread Nick Arnett
We have something I can't figure out happening on one of our servers. It's running 4.0.23 on OSX. One of the InnoDB tables is locked even though we can't see any process that is even active that could have locked it. SHOW OPEN TABLES doesn't show it as in use or locked. We've tried all sorts

Table Lock Delays and Connection Pooling

2004-10-18 Thread Aaron
Hi all , I have a quick question regarding table locking. This is a snippet referring to when table locking is disadvantageous: Another client issues another SELECT statement on the same table. Because UPDATE has higher priority than SELECT, this SELECT will wait for the UPDATE to finish. It

Re: Table Lock Delays and Connection Pooling

2004-10-18 Thread Eric Bergen
Every new connection is considered a client. It's a bad idea to try to do your own scheduling client side to try to defeat table locks because MySQL can proceed with other clients as soon as the locks are freed vs your application waiting for a complete result set to return before proceeding with

innodb table lock question

2004-06-24 Thread Frank Singleton
Hi, A quick mysql database question (using innodb) and connection with java. If someone locks the table with write, can we set a timeout when we are doing a query on that table, so that that it will timeout and throw an exception after say 60 seconds, rather than block ? /Frank -- MySQL

BUG and workaround (Was: Table lock problem on INSERT with FULLTEXT index?)

2004-04-16 Thread Don MacAskill
This problem is completely repeatable, I'm not the only one having it, and I've found a (temporary) workaround. I'm not sure if it affects other machines than AMD64, but it certainly affects them. I've tested on two now. If you start MySQL with skip-concurrent-insert, the problem completely

Re: BUG and workaround (Was: Table lock problem on INSERT with FULLTEXT index?)

2004-04-16 Thread Don MacAskill
Success with the bug entry. Nice system, too. http://bugs.mysql.com/bug.php?id=3483 Thanks, Don Don MacAskill wrote: This problem is completely repeatable, I'm not the only one having it, and I've found a (temporary) workaround. I'm not sure if it affects other machines than AMD64, but it

Re: Table lock problem on INSERT with FULLTEXT index?

2004-04-12 Thread Don MacAskill
FWIW, I'm still having this problem. I've completely dropped the table and re-built it from the ground up. It's a bizarre problem... The table is totally simple. A primary key, and then three varchar fields. The FULLTEXT index spans the 3 varchar fields. There are only 6500+ rows, so it's

Table lock problem on INSERT with FULLTEXT index?

2004-04-07 Thread Don MacAskill
Hi there, I've got a bizarre problem I can't seem to solve. I have a small MyISAM table (6533 rows) with a small FULLTEXT index (3 columns per row, an average of 1 word per column). When I do an INSERT on the table, many times the thread gets stuck perpetually in Query | update. Future

Table lock statistics by TABLE not just server,db

2004-01-09 Thread trevor%tribenetwork.com
Mysqlians, I am trying to determine in some of my database tables should be converted from MyISAM to Innodb. I have read that a collusion on 10-20% is the threshold at which one should convert( current # around .3%). However the table_locks_waited and table_locks_immediate

Re: Table lock statistics by TABLE not just server,db

2004-01-09 Thread Jeremy Zawodny
On Fri, Jan 09, 2004 at 01:43:53PM -0800, trevor%tribenetwork.com wrote: Mysqlians, I am trying to determine in some of my database tables should be converted from MyISAM to Innodb. I have read that a collusion on 10-20% is the threshold at which one should convert( current #

InnoDB table lock status

2002-12-15 Thread Patricio Díaz G .
I'am working with MySQL 3.23.51-Max in a linux box and Visual Fox and Delphi in a WinXP box, mostly using InnoDB tables. Is there a way to know wich rows are lockedin a table? is there a function that returns if a row is locked, or the rows locked in a table? It can be done with a UDF? My

InnoDB table lock status

2002-12-15 Thread Patricio Díaz G .
I'am working with MySQL 3.23.51-Max in a linux box and Visual Fox and Delphi in a WinXP box, mostly using InnoDB tables. Is there a way to know wich rows are lockedin a table? is there a function that returns if a row is locked, or the rows locked in a table? It can be done with a UDF? My

InnoDB table lock status

2002-12-15 Thread Patricio Díaz G.
I'am working with MySQL 3.23.51-Max in a linux box and Visual Fox and Delphi in a WinXP box, mostly using InnoDB tables. Is there a way to know wich rows are lockedin a table? is there a function that returns if a row is locked, or the rows locked in a table? It can be done with a UDF? My

Re: InnoDB table lock status

2002-12-15 Thread Heikki Tuuri
Patricio, - Original Message - From: Patricio Díaz G. [EMAIL PROTECTED] Newsgroups: mailing.database.mysql Sent: Monday, December 16, 2002 12:35 AM Subject: InnoDB table lock status I'am working with MySQL 3.23.51-Max in a linux box and Visual Fox and Delphi in a WinXP box, mostly

RE: Test for table lock

2002-10-21 Thread Don Read
On 21-Oct-2002 Mailing Lists wrote: Hi, Using MySQL, perl and DBI, is there a way to test to see if a table is locked (as in LOCK table...). We batch process our updates every 3 hours or so (it's not a set schedule though, it depends when a certain level of new updates is reached),

Test for table lock

2002-10-21 Thread Mailing Lists
Hi, Using MySQL, perl and DBI, is there a way to test to see if a table is locked (as in LOCK table...). We batch process our updates every 3 hours or so (it's not a set schedule though, it depends when a certain level of new updates is reached), and our main tables are locked during this

Deadlock between slave stop and table lock

2002-07-22 Thread rob . west
support: licence Synopsis: Deadlock between slave stop and table lock Severity: non-critical Priority: low Category: mysql Class: sw-bug Release: mysql-3.23.33 (Source distribution) Environment: System: SunOS mpsa-c577d4 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra

Re: table lock - which connection id own's it

2002-04-25 Thread Jeremy Zawodny
On Wed, Apr 24, 2002 at 12:45:43PM +0300, Michael Widenius wrote: I will add to our TODO to add to SHOW OPEN TABLES a list of threads that has locks on the table (or maybe a SHOW LOCKS command) to better cover this case in the future. Could it be SHOW TABLE LOCKS? That way it is not

RE: table lock - which connection id own's it

2002-04-24 Thread Michael Widenius
Hi! Lopez == Lopez David E-r9374c [EMAIL PROTECTED] writes: cut Lopez If no row is returned, then the following happens: Lopez 1) lock table ... Lopez 2) select ... Lopez 3) if no row is returned, Lopez 4)insert ... Lopez 5)use LAST_INSERT_ID() to get the value of the key

table lock - which connection id own's it

2002-04-23 Thread Michael Widenius
Hi! Lopez == Lopez David E-r9374c [EMAIL PROTECTED] writes: Lopez AntiSpam - mysql, sql, query Lopez Version: 3.23.49a, MyISAM, NT, Solaris Lopez My app is 150 daemons writing logs to mysql. The main Lopez table is of fixed size but depends on four other tables Lopez for foreign keys (hash

Further Question with -- table lock - which connection id own's it

2002-04-23 Thread Sukhdev Sethi
Hi ... just wanted to added another question to this one... you suggested to use LAST_INSERT_ID() , but the question is if there are concurrent access to the database, how will you get the last id without locking the table. Because what I've been doing is also: 1. lock the table 2. get the id

Re: Further Question with -- table lock - which connection id own's it

2002-04-23 Thread Luciano Barcaro
*** REPLY SEPARATOR *** Hi ... just wanted to added another question to this one... you suggested to use LAST_INSERT_ID() , but the question is if there are concurrent access to the database, how will you get the last id without locking the table. Don't worry about

Re: Further Question with -- table lock - which connection id own's it

2002-04-23 Thread Shaun Bramley
- From: Luciano Barcaro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 9:49 AM Subject: Re: Further Question with -- table lock - which connection id own's it *** REPLY SEPARATOR *** Hi ... just wanted to added another question to this one... you

RE: Further Question with -- table lock - which connection id own's it

2002-04-23 Thread Roger Baklund
* Shaun Bramley Depending on how many people are updating this db should ultimately determine your decision to remove the table locks. If hte db is only experiencing one person updating it then it is not necessary. However if multiple people are updating it, then you will want to keep the

RE: table lock - which connection id own's it

2002-04-23 Thread Lopez David E-r9374c
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:59 AM To: Lopez David E-r9374c Cc: Mysql List (E-mail) Subject: table lock - which connection id own's it Hi! Lopez == Lopez David E-r9374c [EMAIL PROTECTED] writes: Lopez AntiSpam - mysql, sql, query Lopez Version: 3.23.49a, MyISAM, NT

RE: table lock - which connection id own's it

2002-04-23 Thread Sinisa Milivojevic
Lopez David E-r9374c writes: Monty BTW, it's a thrill to hear from the CTO. The procedure for locking a table is more complex but will attempt to describe it further for you. Any of the 150 daemons can insert to the hash tables. The data in the row can be used by all 150 daemons. The

table lock - which connection id own's it

2002-04-22 Thread Lopez David E-r9374c
AntiSpam - mysql, sql, query Version: 3.23.49a, MyISAM, NT, Solaris My app is 150 daemons writing logs to mysql. The main table is of fixed size but depends on four other tables for foreign keys (hash tables). These tables are uploaded once to the daemon at start-up. Occasionally, a new entry

will this alter table lock selects?

2002-03-20 Thread Jeff Bearer
I have a table with over 60,000 records, I have a text field that is a full text index. I need to change it to medium text. My question is can it do it without taking the site offline. will the table still be able to serve select queries while the alter is running or will they be locked until

Table Lock

2002-01-28 Thread Hayan Al Mamoun
Hi, Is there a way to lock a table so that only one user can change it and then unlockit? I need to do this coz I want visitors to retrieve some values from a database but each value must be retrieved only by one user and then marked up to be expired, so I don't want two users to retrieve the

Re: Table Lock

2002-01-28 Thread Tobias Kremer :: IT
Hi Hayan, have a look at: http://www.mysql.com/doc/L/O/LOCK_TABLES.html for information on (un)locking tables. At 11:48 28.01.02 +0300, you wrote: Hi, Is there a way to lock a table so that only one user can change it and then unlockit? I need to do this coz I want visitors to retrieve some

RE: Table Lock

2002-01-28 Thread Vasoczki Ferenc
(E-mail) Subject: Table Lock Hi, Is there a way to lock a table so that only one user can change it and then unlockit? I need to do this coz I want visitors to retrieve some values from a database but each value must be retrieved only by one user and then marked up to be expired, so I don't want

Table Lock

2002-01-28 Thread Hayan Al Mamoun
Hi, Is there a way to lock a table so that only one user can change it and then unlockit? I need to do this coz I want visitors to retrieve some values from a database but each value must be retrieved only by one user and then marked up to be expired, so I don't want two users to retrieve the

RE: Table Lock

2002-01-28 Thread Egor Egorov
Vasoczki, Monday, January 28, 2002, 12:20:21 PM, you wrote: VF Yes, i need this too but for a whole database. i just thought, if there is a VF power loss, and the database is get stuck, the users won't able to connect VF again ... It should be a very fanciful power failure and hardware failure

table lock

2002-01-28 Thread bin cai
Hi, I have one concern about multithread. I am building online exam system. many students can get access to one table in one time. Should i use table lock every time when one student get access to the table. As i know, mysql is multithread,that means it already incorporate the table lock feature

Re: table lock

2002-01-28 Thread Jeremy Zawodny
On Mon, Jan 28, 2002 at 12:00:43PM -0500, bin cai wrote: Hi, I have one concern about multithread. I am building online exam system. many students can get access to one table in one time. Should i use table lock every time when one student get access to the table. As i know, mysql

RE: Read/write table lock

2001-03-21 Thread Fabio Galarraga
: Read/write table lock Fabio Galarraga wrote: Hi to all: Somebody knows how to make a read/writa table lock? I'm trying with java source: stmt.execute("LOCK TABLES table-x READ, table-x WRITE"); stmt.execute("UNLOCK TABLES"); but it fails. B

Re: Read/write table lock

2001-03-21 Thread Gerald L. Clark
: 'Mysql mailing list' Asunto: Re: Read/write table lock Fabio Galarraga wrote: If you issue a READ lock, nobody can write to the table. If you Issue a Write lock, only you may read or write to the table. Nobody can read a file you have locked for write. Hi to all: Somebody knows

Read/write table lock

2001-03-20 Thread Fabio Galarraga
Hi to all: Somebody knows how to make a read/writa table lock? I'm trying with java source: stmt.execute("LOCK TABLES table-x READ, table-x WRITE"); stmt.execute("UNLOCK TABLES"); but it fails. Best regards, Fabio Galarr

Re: Read/write table lock

2001-03-20 Thread Jeremy D. Zawodny
On Tue, Mar 20, 2001 at 03:05:53PM -0300, Fabio Galarraga wrote: Hi to all: Somebody knows how to make a read/writa table lock? I'm trying with java source: stmt.execute("LOCK TABLES table-x READ, table-x WRITE"); stmt.execute("UNLOCK TABLES"); but it fails. A

Re: Read/write table lock

2001-03-20 Thread Gerald L. Clark
Fabio Galarraga wrote: Hi to all: Somebody knows how to make a read/writa table lock? I'm trying with java source: stmt.execute("LOCK TABLES table-x READ, table-x WRITE"); stmt.execute("UNLOCK TABLES"); but it fails. Best regards, Fabio Galarraga [EMA

optimize table LOCK

2001-02-08 Thread Steve Ruby
If OPTIMIZE TABLE appears to be writting to a temporary file while it works (.TMM).. Why must it lock readers out of the original table file? - Before posting, please check: http://www.mysql.com/manual.php (the manual)

3.23.30 and big table lock

2001-01-17 Thread David Xu
Hi there, I heard MySQL 3.23.30 was released and support transaction with BDB tables, I want to know if I use BDB tables, will MySQL not use BIG TABLE LOCK in BDB tables? we plan to build a very busy web server, and very care about this issue. Regards, David