Converting MyISAM to InnoDB

2010-02-08 Thread Steve Staples
Hello again! I am trying to convert my tables to InnoDB, and i am getting an error... Error: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key Now, I converted a table in my sandbox earlier this morning to do some testing, and it worked fine

RE: Converting MyISAM to InnoDB

2010-02-08 Thread Gavin Towey
If you have a column defined as auto_increment, there must be a key on it. This is true both in myisam and innodb. If you need further help, please show us the full structure of the real table you're operating on (not the one from your sandbox), the statement you run, and the error message

Re: auto_increment without primary key in innodb?

2010-01-26 Thread Johan De Meersman
: create table (myid int unsigned not null auto_increment., unique key (myid)); but this is effectively a primary key Only mostly true :-) It *is* the same for MyISAM, but for InnoDB the primary key is special, as that is the one that stores the data inline (clustered index). Additional

Fwd: auto_increment without primary key in innodb?

2010-01-26 Thread Wagner Bianchi
key. mysql create table t (i int not null auto_increment, index(i)) engine innodb; Query OK, 0 rows affected (0.45 sec) On Jan 25, 2010, at 9:39 AM, Yang Zhang wrote: Right, I saw the docs. I'm fine with creating an index on it, but the only way I've successfully created a table

auto_increment without primary key in innodb?

2010-01-25 Thread Yang Zhang
In innodb, is it possible to have an auto_increment field without making it a (part of a) primary key? Why is this a requirement? I'm getting the following error. Thanks in advance. ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key

RE: auto_increment without primary key in innodb ?

2010-01-25 Thread Tom Worster
it's not an innodb thing: http://dev.mysql.com/doc/refman/5.0/en/create-table.html Note There can be only one AUTO_INCREMENT column per table, it must be indexed, and it cannot have a DEFAULT value. An AUTO_INCREMENT column works properly only if it contains only positive values. Inserting

Re: auto_increment without primary key in innodb?

2010-01-25 Thread Yang Zhang
...@thefsb.org wrote: it's not an innodb thing: http://dev.mysql.com/doc/refman/5.0/en/create-table.html Note There can be only one AUTO_INCREMENT column per table, it must be indexed, and it cannot have a DEFAULT value. An AUTO_INCREMENT column works properly only if it contains only positive

Re: auto_increment without primary key in innodb?

2010-01-25 Thread Jaime Crespo Rincón
2010/1/25 Yang Zhang yanghates...@gmail.com: Right, I saw the docs. I'm fine with creating an index on it, but the only way I've successfully created a table with auto_increment is by making it a primary key. And I still don't understand why this requirement is there in the first place.

Re: auto_increment without primary key in innodb?

2010-01-25 Thread Paul DuBois
The requirement is that it be indexed. The index need not be a primary key. mysql create table t (i int not null auto_increment, index(i)) engine innodb; Query OK, 0 rows affected (0.45 sec) On Jan 25, 2010, at 9:39 AM, Yang Zhang wrote: Right, I saw the docs. I'm fine with creating an index

Re: auto_increment without primary key in innodb?

2010-01-25 Thread Yong Lee
: In innodb, is it possible to have an auto_increment field without making it a (part of a) primary key? Why is this a requirement? I'm getting the following error. Thanks in advance. ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined

innodb recovery

2010-01-20 Thread Johny Brawo
Hello! I got all data files (ibdata1, ib_logfile, etc) recovevered from mine old Debian 3.1 box (and i dont know MySQL version :( ). I want to get that DB running again. Can i copy these files to newer version of MySQL, and if i can - how? Any commands, any parameters? -- MySQL General Mailing

Re: innodb recovery

2010-01-20 Thread Carlos Proal
Hi Johny Do you have the my.cnf configuration file ?? that can simplify things. Carlos On 1/20/2010 3:32 AM, Johny Brawo wrote: Hello! I got all data files (ibdata1, ib_logfile, etc) recovevered from mine old Debian 3.1 box (and i dont know MySQL version :( ). I want to get that DB running

Re: innodb recovery

2010-01-20 Thread Krishna Chandra Prajapati
Hi John, The data files will give you some informations like log_file_size, mutliple tablespace is being used or not. Although my.cnf can help you a lot. With the above information, use it with newer version of mysql. Krishna On Wed, Jan 20, 2010 at 3:02 PM, Johny Brawo lydyh...@gmail.com

Re: Performance Innodb my.cnf

2010-01-18 Thread Suresh Kuna
Hi Ortis, How abt the hits or load i.e ( DML, DDL ) to the server. My initial assessment after looking at you cnf file is 1) Calculate and place an appropriate value for innodb_buffer_pool_size 2) Reduse the innodb_thread_concurrency to 4 or 8. and how about the no. of tables in the database and

MySQL InnoDB memory performance tuning

2010-01-10 Thread Yang Zhang
Hi, I have a fairly small (data dir is 1.2GB) InnoDB database managed by MySQL 5.4.3-beta on an 8-core x86_64 Linux box with 16GB RAM. I'd like to use as much of the memory as possible, but despite specifying (e.g.) --innodb-buffer-pool-size=30, mysql only ever takes up 374M of resident

Re: Table level locking when inserting auto-increment PK to InnoDB

2009-12-24 Thread Jaime Crespo Rincón
2009/12/23 Ryan Chan ryanchan...@gmail.com: Hey. Back to few years ago, InnoDB require table level locking when inserting auto-increment PK to the table, and Heikki said there will be a fix. Is this problem still exist now? If you refer to this bug: http://bugs.mysql.com/bug.php?id=16979

Table level locking when inserting auto-increment PK to InnoDB

2009-12-23 Thread Ryan Chan
Hey. Back to few years ago, InnoDB require table level locking when inserting auto-increment PK to the table, and Heikki said there will be a fix. Is this problem still exist now? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: RE: Innodb buffer pool size filling up

2009-12-18 Thread Claudio Nanni
uses in your system you can lower it a little, but I think you are using this box only for MySQL and a 'good' practice is to use 70/80% of system Ram ONLY for innodb buffer pool. Cheers Claudio On 18 dec 2009 06:34, machiel.richards machiel.richa...@gmail.com wrote: Good Morning all

RE: RE: Innodb buffer pool size filling up

2009-12-18 Thread machiel.richards
Thank you very much. This now explains a lot. From: Claudio Nanni [mailto:claudio.na...@gmail.com] Sent: 18 December 2009 10:05 AM To: machiel.richards Cc: mysql@lists.mysql.com Subject: Re: RE: Innodb buffer pool size filling up Machiel, That is how it is supposed

RE: Innodb buffer pool size filling up

2009-12-18 Thread Jerry Schwartz
-Original Message- From: machiel.richards [mailto:machiel.richa...@gmail.com] Sent: Friday, December 18, 2009 12:33 AM To: mysql@lists.mysql.com Subject: RE: Innodb buffer pool size filling up Good Morning all QUOTE: We have a MySQL database where

RE: Innodb buffer pool size filling up

2009-12-17 Thread machiel.richards
. Regards Machiel -Original Message- From: Jerry Schwartz [mailto:jschwa...@the-infoshop.com] Sent: 01 December 2009 10:04 PM To: 'machiel.richards'; 'Claudio Nanni' Cc: mysql@lists.mysql.com Subject: RE: Innodb buffer pool size filling up -Original Message- From

AW: InnoDB Corrupted databases (innodb_force_recovery not working)

2009-12-16 Thread Lukas C. C. Hempel
von Baron Schwartz Gesendet: Montag, 14. Dezember 2009 22:57 An: Lukas C. C. Hempel Cc: mysql@lists.mysql.com Betreff: Re: InnoDB Corrupted databases (innodb_force_recovery not working) Lukas, If you can't get innodb_force_recovery to work, then you might have to try to recover the data

InnoDB Corrupted databases (innodb_force_recovery not working)

2009-12-14 Thread Lukas C. C. Hempel
Hey there, I have recently imported the database files from a crashed server and I am currently trying to get the new server running with the old data. However, after starting the MySQL Server, I only get the following error message: 091214 20:51:46 mysqld started InnoDB: The user

Re: InnoDB Corrupted databases (innodb_force_recovery not working)

2009-12-14 Thread Baron Schwartz
Lukas, If you can't get innodb_force_recovery to work, then you might have to try to recover the data with these tools: http://code.google.com/p/innodb-tools/ Regards Baron -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com

Re: Innodb buffer pool size filling up

2009-12-01 Thread Claudio Nanni
That is basically its use, the buffer pool is the collection of all mysql innodb buffers, and after warm up it goes to keep all cacheable data. How big is your INNODB_BUFFER_POOL_SIZE ? Cheers Claudio 2009/12/1 machiel.richards machiel.richa...@gmail.com There are no errors in the logs

RE: Innodb buffer pool size filling up

2009-12-01 Thread machiel.richards
...@gmail.com] Sent: 01 December 2009 01:12 PM To: machiel.richards Cc: mysql@lists.mysql.com Subject: Re: Innodb buffer pool size filling up That is basically its use, the buffer pool is the collection of all mysql innodb buffers, and after warm up it goes to keep all cacheable data. How big is your

Re: Innodb buffer pool size filling up

2009-12-01 Thread Claudio Nanni
The Innodb Buffer Pull usually follow a growth over time that resembles an horizontal asintot ( http://www.maecla.it/bibliotecaMatematica/go_file/MONE_BESA/grafico.gif) This to leverage all its size! So should not be a problem! Cheers Claudio 2009/12/1 machiel.richards machiel.richa

RE: Innodb buffer pool size filling up

2009-12-01 Thread Jerry Schwartz
-Original Message- From: machiel.richards [mailto:machiel.richa...@gmail.com] Sent: Tuesday, December 01, 2009 6:17 AM To: 'Claudio Nanni' Cc: mysql@lists.mysql.com Subject: RE: Innodb buffer pool size filling up The size was at 2Gb and was recently changed to 3Gb in size during the last

RE: Innodb buffer pool size filling up

2009-11-30 Thread Neil Aggarwal
Machiel: We have a MySQL database where the INNODB_BUFFER_POOL_SIZE keeps on filling up. Are you getting any errors or just noticing the buffer pool is full? I saw some error messages about the buffer pool size becoming a problem if the fscync is slow. Do you see any more

RE: Innodb buffer pool size filling up

2009-11-30 Thread machiel.richards
...@jammconsulting.com] Sent: 01 December 2009 08:55 AM To: mysql@lists.mysql.com Subject: RE: Innodb buffer pool size filling up Machiel: We have a MySQL database where the INNODB_BUFFER_POOL_SIZE keeps on filling up. Are you getting any errors or just noticing the buffer pool is full? I saw

Innodb Buffer Pool vs Query Cache

2009-11-12 Thread Aveek Misra
I am using the innodb storage engine for a table that is used for a lot of SELECT's on columns that are defined as indexes. I have not enabled the query cache as of now since the innodb buffer pool already caches data and index information for InnoDB tables. So my question is - is the query

Re: Innodb Buffer Pool vs Query Cache

2009-11-12 Thread Johan De Meersman
individual query once and only once, you'll reap the benefits of it. On Thu, Nov 12, 2009 at 10:00 AM, Aveek Misra ave...@yahoo-inc.com wrote: I am using the innodb storage engine for a table that is used for a lot of SELECT's on columns that are defined as indexes. I have not enabled

ENGINE=InnoDB DEFAULT CHARSET=latin1;

2009-11-09 Thread Sydney Puente
Hello, I am getting an error #HY000Incorrect string value: '\xE9l\xE9tra...' for column ' Not quite sure why. hex E9 is a lower case e acute found in CP1252 and googling seems to tell me that the latin1 charset that I have set for the table should display this OK. mysql V 5.0.54a on Redhat

Re: error code 139 innodb

2009-10-15 Thread Kyong Kim
Raj, Yup. It's that bug. I got the row size to below 8K and the insertion takes place fine. Thanks for pointing me in the right direction. Kyong On Wed, Oct 14, 2009 at 10:31 AM, Raj Shekhar rajl...@rajshekhar.net wrote: Kyong Kim kykimdba at gmail.com writes: For sure all of our columns

Re: error code 139 innodb

2009-10-14 Thread Raj Shekhar
Kyong Kim kykimdba at gmail.com writes: For sure all of our columns combined do not exceed 64K. We're using latin 1 character set. I don't think we would be running into the 8K limit on row length since the culprit seems to be data being inserted into VARCHAR(255) column. Can you show us

error code 139 innodb

2009-10-12 Thread Kyong Kim
We have an InnoDB table on MySQL 5.0. We recently encountered an this error during a multirow insert(200 rows). We identified the data causing it and it's a a series of long strings exceeding the VARCHAR(255) columns into which they're being inserted. I've been looking at the InnoDB restriction

MySQL University session on October 1: InnoDB Internals: InnoDB File Formats and Source Code Structure

2009-09-29 Thread Stefan Hinz
InnoDB Internals: InnoDB File Formats and Source Code Structure http://forge.mysql.com/wiki/InnoDB_Internals:_InnoDB_File_Formats_and_Source_Code_Structure This Thursday (October 1st, 14:00 UTC - one hour later than usually), Calvin Sun will give a session on InnoDB Internals: InnoDB File Formats

JPA, InnoDB, and locking in multi-threaded app

2009-09-14 Thread Grover Blue
perform some SELECT operation, but not to manipulate data - just to check for existence. These threads act every 2 minutes. The purging thread issues a DELETE (which, to my understanding, JPA translates directly to a DELETE statement consistent with the underlining db. In my case, MySQL InnoDB tables

HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Néstor
Maybe one of you experts know the answer. I have a Innodb database that I want to back up. Is there a free tool to do this? mysqlhotbackup is a paid tool, is that the only one available? If I do a mysqldump of the innodb databse, will I be avail to uploaded into a myisam database

Re: HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Néstor
for it! -Original Message- From: Néstor rot...@gmail.com Date: Mon, 14 Sep 2009 07:44:25 To: mysql@lists.mysql.com Subject: HOW TO Backup a mysql innodb on windows? Maybe one of you experts know the answer. I have a Innodb database that I want to back up. Is there a free tool to do

Re: HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Michael Dykman
If I may, If you have foreign keys on your InnoDB, you can still import your data to MyISAM but foreign keys will be lost. Otherwise, the data will load just fine. - michael dykman On Mon, Sep 14, 2009 at 11:14 AM, Todd Lyons tly...@ivenue.com wrote: On Mon, Sep 14, 2009 at 7:44 AM, Néstor

Re: HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Néstor
: Mon, 14 Sep 2009 07:44:25 To: mysql@lists.mysql.com Subject: HOW TO Backup a mysql innodb on windows? Maybe one of you experts know the answer. I have a Innodb database that I want to back up. Is there a free tool to do this? mysqlhotbackup is a paid tool, is that the only one available

Re: HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Néstor
- From: Néstor rot...@gmail.com Date: Mon, 14 Sep 2009 07:44:25 To: mysql@lists.mysql.com Subject: HOW TO Backup a mysql innodb on windows? Maybe one of you experts know the answer. I have a Innodb database that I want to back up. Is there a free tool to do this? mysqlhotbackup is a paid tool

Re: HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Todd Lyons
On Mon, Sep 14, 2009 at 7:44 AM, Néstor rot...@gmail.com wrote: Maybe one of you experts know the answer. I have a Innodb database that I want to back up.   Is there a free tool to do this? mysqlhotbackup is a paid tool, is that the only one available? You can also use the free tool from

Re: HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Todd Lyons
On Mon, Sep 14, 2009 at 8:28 AM, Michael Dykman mdyk...@gmail.com wrote: If I may, If you have foreign keys on your InnoDB, you can still import your data to MyISAM but foreign keys will be lost.  Otherwise, the data will load just fine. Very good point. My comment was based on the possibly

Re: HOW TO Backup a mysql innodb on windows?

2009-09-14 Thread Michael Dykman
have a Innodb database that I want to back up.   Is there a free tool to do this? mysqlhotbackup is a paid tool, is that the only one available? If I do a mysqldump of the innodb databse, will I be avail to uploaded into a myisam database and will it work? Thanks, Nestor -- - michael

Re: InnoDB doubles size when converting from MyIsam

2009-09-13 Thread Arthur Meeks Meeks
2009/9/13 Dan Nelson dnel...@allantgroup.com In the last episode (Sep 12), Arthur Meeks Meeks said: I have a database with about 1000 tables and 150GB. I have done a simple for f in $(cat tables); do mysql -uuser -ppassword database_name -e alter table $f engine=InnoDB; ; done I took

InnoDB doubles size when converting from MyIsam

2009-09-12 Thread Arthur Meeks Meeks
Hello, I have a database with about 1000 tables and 150GB. I have done a simple for f in $(cat tables); do mysql -uuser -ppassword database_name -e alter table $f engine=InnoDB; ; done I took about 3 hours and everything went fine, but I just realised that the same database in another server

Re: InnoDB doubles size when converting from MyIsam

2009-09-12 Thread Dan Nelson
In the last episode (Sep 12), Arthur Meeks Meeks said: I have a database with about 1000 tables and 150GB. I have done a simple for f in $(cat tables); do mysql -uuser -ppassword database_name -e alter table $f engine=InnoDB; ; done I took about 3 hours and everything went fine, but I just

Innodb + Large data set

2009-08-25 Thread Suhail Doshi
are in place? This is on the InnoDB engine. I was curious if there are any problems where doing a read on a large dataset has huge problems down the road. Let's assume the server is a quad core with 4 GB of RAM. Surely it shouldn't have a *huge* effect? Sincerely, Suhail Doshi

Re: Innodb + Large data set

2009-08-25 Thread muhammad subair
(in that they return only a few rows since only a few match) and the proper indexes are in place? This is on the InnoDB engine. I was curious if there are any problems where doing a read on a large dataset has huge problems down the road. Let's assume the server is a quad core with 4 GB of RAM

Re: Innodb + Large data set

2009-08-25 Thread mos
a few match) and the proper indexes are in place? This is on the InnoDB engine. I was curious if there are any problems where doing a read on a large dataset has huge problems down the road. Let's assume the server is a quad core with 4 GB of RAM. Surely it shouldn't have a *huge* effect? Sincerely

Re: foreign keys: Cannot create InnoDB table

2009-08-20 Thread wabiko.takuma
Hi, Martijn, Gavin. SHOW INNODB STATUS gave me helpful messages like following: LATEST FOREIGN KEY ERROR 090821 12:53:18 Error in foreign key constraint of table test_fk/tbl1: FOREIGN KEY (`col1` , `col2` , `col3` ) REFERENCES

Re: foreign keys: Cannot create InnoDB table

2009-08-14 Thread Martijn Tonies
Hi, I can't create InnoDB table with foreign key constraints using more than 3 colmuns. When I create table `test_fk`.`tbl1`, it gives me: Can't create table 'test_fk.tbl1' (errno: 150) why? CREATE TABLE syntax looks perfectly right to me. Any suggestions are welcome. Thank you, wabi

foreign keys: Cannot create InnoDB table

2009-08-14 Thread wabiko.takuma
Hi, All, I can't create InnoDB table with foreign key constraints using more than 3 colmuns. When I create table `test_fk`.`tbl1`, it gives me: Can't create table 'test_fk.tbl1' (errno: 150) why? CREATE TABLE syntax looks perfectly right to me. Any suggestions are welcome. Thank you

RE: foreign keys: Cannot create InnoDB table

2009-08-14 Thread Gavin Towey
Run: SHOW ENGINE INNODB STATUS \G And look for the LATEST FOREIGN KEY ERROR section. It'll explain the reason for the (errno: 150) message. Regards, Gavin Towey -Original Message- From: wabiko.takuma [mailto:wab...@sysrdc.ns-sol.co.jp] Sent: Friday, August 14, 2009 3:35 AM To: mysql

Re: Does InnoDB ever not cluster data by primary key?

2009-07-31 Thread Kyong Kim
key updates. It's definitely a tradeoff. We're reasonably certain that we'll see a lot of ordered bulk inserts. It ran counter to the results that we were seeing so I had to verify that InnoDB always clusters by primary key regardless of the position of the auto increment column in the primary

Does InnoDB ever not cluster data by primary key?

2009-07-30 Thread Kyong Kim
We have a multi-column primary key with an auto-increment column as the 3rd column in the primary key in InnoDB. Is there a requirement to have the auto-increment column as the leftmost column in the primary key in order for InnoDB to cluster by the multi-column primary key? I don't believe

Re: Does InnoDB ever not cluster data by primary key?

2009-07-30 Thread Kyong Kim
. We're reasonably certain that we'll see a lot of ordered bulk inserts. It ran counter to the results that we were seeing so I had to verify that InnoDB always clusters by primary key regardless of the position of the auto increment column in the primary key. Kyong On Thu, Jul 30, 2009 at 7:08 PM

Re: Does InnoDB ever not cluster data by primary key?

2009-07-30 Thread Michael Dykman
inserts. It ran counter to the results that we were seeing so I had to verify that InnoDB always clusters by primary key regardless of the position of the auto increment column in the primary key. Kyong On Thu, Jul 30, 2009 at 7:08 PM, Michael Dykmanmdyk...@gmail.com wrote: InnoDb storage

ANSI Isolation Level vs. InnoDB consistent read implementation

2009-07-07 Thread Xuekun Hu
Hi, Guys I think I got puzzled about the transaction isolation level and the InnoDB consistent read implementation. My understanding about the ANSI isolation level are: 1. READ-COMMITTED is to protect against Lost Updates, Dirty Reads, and NOT protect against Nonrepeatable Reads and Phantoms. 2

Re: INNODB INDEX SIZE

2009-06-26 Thread Moon's Father
Hi. I think innodb will split these into many small pieces and then merge them to execute. On Thu, Jun 18, 2009 at 1:52 PM, Krishna Chandra Prajapati prajapat...@gmail.com wrote: Hi guys, On MIS (management information system) server we have 16GB of physical memory. 10GB has been allocated

Re: INNODB INDEX SIZE

2009-06-26 Thread Krishna Chandra Prajapati
Thanks, I am looking answer internally how the thinks work. Regards, Krishna On Fri, Jun 26, 2009 at 2:33 PM, Moon's Father yueliangdao0...@gmail.comwrote: Hi. I think innodb will split these into many small pieces and then merge them to execute. On Thu, Jun 18, 2009 at 1:52 PM, Krishna

composite vs single column secondary index in innodb

2009-06-24 Thread Kyong Kim
We have a composite primary key consisting of column a, column b, column c. We don't have a lot of variation on column a and it makes sense for us to cluster by a. Our queries are SELECT column c FROM table WHERE column a=something and column e=something. By creating a composite secondary index on

Innodb Update_time

2009-06-15 Thread Darvin Denmian
Hello List, how can i get table update_time using innodb engine? Thanks. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Effect of NULL on index performance specific to InnoDB

2009-06-01 Thread Kyong Kim
It's often said that NOT NULL column is preferable in terms of index performance. I was wondering exactly why and how this is so specifically to InnoDB. It would be great if someone can shed light on this matter in some detail. Kyong -- MySQL General Mailing List For list archives: http

RE: Understanding Transaction Deadlocks with Innodb

2009-05-26 Thread Michael Caplan
Gainty wrote: Mike- MySQL should ALWAYS perform a commit or rollback e.g. exec() commit() or rollback() The reason for this is from Page 419 of the MySQL 5.0 Certification Study Guide bullet point #3: During the course of a transaction, InnoDB may acquire row locks AS IT DISCOVERS THEM

Understanding Transaction Deadlocks with Innodb

2009-05-25 Thread Michael Caplan
. Part of me believes if I understood the circumstances of the deadlock, I might be able to solve this issue (in part or in whole) at the DB level. Any tips? I've included below data from the Innodb status output. Thanks, Mike LATEST DETECTED DEADLOCK

innodb vs myisam

2009-05-23 Thread bharani kumar
Hi all , Am not much knowledgeable person in mysql , but i know the query and all, But dont know the history and all about mysql , But i like to know , Can u please tell me , Here is difference what i know , innodb = suport concurrency , row level locking , rollback, commit myisam = support

Re: innodb rollback 30x slower than commit normal?

2009-05-09 Thread Simon J Mudd
nik...@doppelganger.com (Nikita Tovstoles) writes: We have a java-based webapp that talks to MySQL 5.1 INNODB in READ_COMMITTED. We use Hibernate and optimistic concurrency, so periodically concurrent write attempts cause app-level Exceptions that trigger rollbacks (and then we retry tx

innodb rollback 30x slower than commit normal?

2009-05-07 Thread Nikita Tovstoles
We have a java-based webapp that talks to MySQL 5.1 INNODB in READ_COMMITTED. We use Hibernate and optimistic concurrency, so periodically concurrent write attempts cause app-level Exceptions that trigger rollbacks (and then we retry tx). We've added app-level caching and turned down our tomcat

Re: Small InnoDB table with many concurrent queries

2009-04-21 Thread living liquid | Christian Meisinger
was with myisam but with a lot of concurrent queries (all SELECTs) i get too many table locks. so i changed it to an innodb table. works great most of the time. sometimes it seems to be too much, starting at about 500 concurrent queries i see a huge amount of processes taking about 3 minutes

Re: Small InnoDB table with many concurrent queries

2009-04-21 Thread Moon's Father
Once your tables' engine are all of innodb, your configuration file has to be changed to fit innodb's feature, not myisam. On Tue, Apr 21, 2009 at 2:09 PM, living liquid | Christian Meisinger c.meisin...@livingliquid.com wrote: ah sorry... there are a few UPDATEs too but most is SELECTs

Small InnoDB table with many concurrent queries

2009-04-20 Thread living liquid | Christian Meisinger
Hi there. I've a small table with my daily banner hits. 1. version was with myisam but with a lot of concurrent queries (all SELECTs) i get too many table locks. so i changed it to an innodb table. works great most of the time. sometimes it seems to be too much, starting at about 500 concurrent

Re: Small InnoDB table with many concurrent queries

2009-04-20 Thread Krishna Chandra Prajapati
but with a lot of concurrent queries (all SELECTs) i get too many table locks. so i changed it to an innodb table. works great most of the time. sometimes it seems to be too much, starting at about 500 concurrent queries i see a huge amount of processes taking about 3 minutes to finish 'sending

Re: Small InnoDB table with many concurrent queries

2009-04-20 Thread Brent Baisley
problems, you are doing more than just a lot of SELECTs. How many inserts, updates, deletes are you doing? If you are doing a lot of updates, even InnoDB will block if you are trying to update the same record across queries. If you have a lot of querying in sending data state, check which ones

InnoDB best practices for ensuring unique tuple where one column can be NULL

2009-04-16 Thread Lev Lvovsky
hello, assume the following table: CREATE TABLE t ( id INT UNSIGNED auto_increment PRIMARY KEY, c1 INT UNSIGNED NOT NULL, c2 INT UNSIGNED NOT NULL, c3 INT UNSIGNED, UNIQUE (c1, c2, c3) ) engine = InnoDB; Our first issue is that the UNIQUE constraint on (c1,c2,c3) does not work in the case

Re: Rename InnoDB database

2009-04-07 Thread Ding Hao
, Shuly Avraham 写道: Hi, I need to rename a database having InnoDB tables. MySQL version is: 5.0.24-standard - so I cannot use the 'mysqladmin rename' option. What would be the best approach for doing this? Thanks, Shuly. -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Rename InnoDB database

2009-04-07 Thread Krishna Chandra Prajapati
Hi shuly, 1 Use innodb_file_per_table. 2 Create new database. 3 Take the dump of old database. 4 Restore in new database. 5 Drop old database. On Mon, Apr 6, 2009 at 9:50 PM, Shuly Avraham sh...@cshl.edu wrote: Hi, I need to rename a database having InnoDB tables. MySQL version is: 5.0.24

Re: Rename InnoDB database

2009-04-07 Thread Shuly Avraham
luck. - Ding Hao/Fire9 DB Architect Emailmsngtalk: fire9di...@gmail.com My Blog:http://www.fire9.cn My Twitter: http://twitter.com/fire9 在 2009-4-7,上午12:20, Shuly Avraham 写道: Hi, I need to rename a database having InnoDB tables. MySQL

Rename InnoDB database

2009-04-06 Thread Shuly Avraham
Hi, I need to rename a database having InnoDB tables. MySQL version is: 5.0.24-standard - so I cannot use the 'mysqladmin rename' option. What would be the best approach for doing this? Thanks, Shuly. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Solved Select query locks tables in Innodb

2009-03-25 Thread Carl
locks tables in Innodb 2009/3/12 Carl c...@etrak-plus.com: I am still a little puzzled about how we could have a relatively large set of records (100,000+) and yet not cause any table to be locked as the server has only 8GB of memory. What's the relationship you're implying between memory

Re: InnoDB - CREATE INDEX - Locks table for too long

2009-03-16 Thread Claudio Nanni
Hi, I am using your procedure on MyISAM tables now and works but RENAME does not work with locked tables, (anyway it is already an atomic operation) =BARON Try something like this: create table new_table like old_table; alter table new_table add

Re: Select query locks tables in Innodb

2009-03-13 Thread Perrin Harkins
concurrency doesn't necessarily mean the older versions that are being read from have to be entirely in memory. InnoDB will lock on a query that doesn't use an index. It shouldn't lock on a SELECT query, regardless of the indexes involved. - Perrin -- MySQL General Mailing List For list

Re. Cannot find table from the internal data dictionary of InnoDB though the .frm

2009-03-12 Thread Krish Compusoft Services Pvt. Ltd
Dear Sir, I am using Mysql 5 in windows system. I have formatted my system and copy the data directory before formatting the system. After formatting the system I have installed Mysql5 and resorted the data directory with the older one. When I browsing the database then innodb

Re: Select query locks tables in Innodb

2009-03-12 Thread Carl
suggestions also. Carl - Original Message - From: Brent Baisley brentt...@gmail.com To: Carl c...@etrak-plus.com Sent: Thursday, March 05, 2009 1:12 PM Subject: Re: Select query locks tables in Innodb Ok, so you have 687 unique organization serial numbers. That's not very unique

Re: Select query locks tables in Innodb

2009-03-12 Thread Brent Baisley
...@etrak-plus.com Sent: Thursday, March 05, 2009 1:12 PM Subject: Re: Select query locks tables in Innodb Ok, so you have 687 unique organization serial numbers. That's not very unique, on average it will only narrow down the table to 1/687 of it's full size. This is probably the source of your

Question about LVM snapshots and innodb tables

2009-03-11 Thread Jim Lyons
The book “High Performance MySQL” states the following about using LVM snapshots with innodb tables: “All innodb files (InnoDB tablespace files and InnoDB transaction logs) must be on a single logical volume (partition).” Here is portion of a df command performed on one of our hosts: /dev

RE: InnoDB deadlocks

2009-03-10 Thread Jerry Schwartz
-Original Message- From: Paul McCullagh [mailto:paul.mccull...@primebase.com] Sent: Monday, March 09, 2009 6:34 PM To: Mattia Merzi Cc: MySql Subject: Re: InnoDB deadlocks Hi Mattia, On Mar 9, 2009, at 6:21 PM, Mattia Merzi wrote: Hi everyone, I've got some problems with deadlocks

Re: InnoDB deadlocks

2009-03-10 Thread Mattia Merzi
Hi there, well, thanks for the hints regarding transaction-serialization performance but, if you read my very first e-mail, I didn't mention any kind of performance trouble, I just sometimes (once a *month*) have to re-issue some db commands because of these deadlocks, but 99.9% of the time I

InnoDB deadlocks

2009-03-09 Thread Mattia Merzi
Hi everyone, I've got some problems with deadlocks on InnoDB tables. On paragraph 13.6.8.10. How to Cope with Deadlocks of the mysql 5.1 version, the last sentence states: -- Another way to serialize transactions is to create an auxiliary “semaphore” table that contains just a single

Re: InnoDB deadlocks

2009-03-09 Thread Paul McCullagh
Hi Mattia, On Mar 9, 2009, at 6:21 PM, Mattia Merzi wrote: Hi everyone, I've got some problems with deadlocks on InnoDB tables. On paragraph 13.6.8.10. How to Cope with Deadlocks of the mysql 5.1 version, the last sentence states: -- Another way to serialize transactions

Re: Select query locks tables in Innodb

2009-03-05 Thread Carl
@lists.mysql.com Sent: Wednesday, March 04, 2009 8:11 PM Subject: Re: Select query locks tables in Innodb I don't think it locks the tables. The behavior may be similar, but I seriously doubt that's what's happening. Take a snapshot of SHOW INNODB STATUS while this is going on. And use

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
ba...@xaprb.com To: Brent Baisley brentt...@gmail.com Cc: Carl c...@etrak-plus.com; mysql@lists.mysql.com Sent: Tuesday, March 03, 2009 5:50 PM Subject: Re: Select query locks tables in Innodb On Tue, Mar 3, 2009 at 12:35 PM, Brent Baisley brentt...@gmail.com wrote: A SELECT will/can lock

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
Message - From: Baron Schwartz ba...@xaprb.com To: Brent Baisley brentt...@gmail.com Cc: Carl c...@etrak-plus.com; mysql@lists.mysql.com Sent: Tuesday, March 03, 2009 5:50 PM Subject: Re: Select query locks tables in Innodb On Tue, Mar 3, 2009 at 12:35 PM, Brent Baisley brentt...@gmail.com

Re: Select query locks tables in Innodb

2009-03-04 Thread Perrin Harkins
2009/3/4 Carl c...@etrak-plus.com: However, when I had all the pieces in the query (copy attached), I could easily see it was locking tables using the Server Monitor in Navicat. I don't know what that is, but I think you'd better look at something closer to the bone, like SHOW INNODB STATUS

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
query locks tables in Innodb On Tue, Mar 3, 2009 at 12:35 PM, Brent Baisley brentt...@gmail.com wrote: A SELECT will/can lock a table. It almost always does in MyISAM (no insert/updates), almost never does in InnoDB. There is an exception to every rule. The problem is most likely in the 107488 rows

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
I did check that all tables are Innodb. I was using the Navicat Server Monitor because I know that when I see the monitor reporting a status of locked during an attempted query, that user comes to a complete halt until the lock is cleared (usually by the bad query finishing.) I will check

Re: Select query locks tables in Innodb

2009-03-04 Thread Baron Schwartz
Carl, Locked status in SHOW PROCESSLIST and a table being locked are different. There is a bug in MySQL that shows Locked status for queries accessing InnoDB tables in some cases. What version of MySQL are you using? The table is not really locked, you're just seeing that as a side effect

Re: Select query locks tables in Innodb

2009-03-04 Thread Baron Schwartz
Carl, Locked status in SHOW PROCESSLIST and a table being locked are different. There is a bug in MySQL that shows Locked status for queries accessing InnoDB tables in some cases. What version of MySQL are you using? The table is not really locked, you're just seeing that as a side effect

<    1   2   3   4   5   6   7   8   9   10   >