Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread Morgan Tocker
Hi Brad, > We actually only have about 60 tables in that database. I've tried increasing > the cache and open tables limits and get the same behaviour. Hmm.. Shawn’s guesses are probably better than mine then. > A few other tests I've tried: > > 1. Stand up a new machine, dump just the schema

Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread shawn l.green
Hello Brad, On 3/17/2014 5:50 PM, Brad Heller wrote: Hey Morgan, We actually only have about 60 tables in that database. I've tried increasing the cache and open tables limits and get the same behavior. mysql> select @@table_definition_cache, @@table_open_cache, @@innodb_file_per_table, @@inno

Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread Brad Heller
the process list (scrubbed) and the show engine > > innodb status. Notice that all of the SHOW CREATE TABLE aren't for hte > same > > table, just got cleaned up that way. > > It shouldn't matter if they are for the same or different - in 5.5 there > is one table ope

Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread Morgan Tocker
Hi Brad, > That sounds right. Here's the process list (scrubbed) and the show engine > innodb status. Notice that all of the SHOW CREATE TABLE aren't for hte same > table, just got cleaned up that way. It shouldn't matter if they are for the same or different - in 5.5

Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread Brad Heller
Hey Morgan, That sounds right. Here's the process list (scrubbed) and the show engine innodb status. Notice that all of the SHOW CREATE TABLE aren't for hte same table, just got cleaned up that way. https://gist.github.com/bradhe/c9f00eaf93ac588b8339 We have the de

Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread Morgan Tocker
Hi Brad, > I'm trying to figure out how InnoDB executes a SHOW CREATE TABLE query so I > can figure out what could possibly have made them suddenly slow down? > > mysql> SHOW CREATE TABLE `my_table`; > ... > 1 row in set (37.48 sec) > > We tend to execute many

Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread Brad Heller
t;Brad Heller" wrote: > >> Hey all, >> >> I'm trying to figure out how InnoDB executes a SHOW CREATE TABLE query so >> I >> can figure out what could possibly have made them suddenly slow down? >> >> mysql> SHOW CREATE TABLE `my_table`; >>

Re: SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-17 Thread Andrew Moore
Hey Brad. What version are you using? My immediate thought is to check if innodb_stats_on_metadata is off. If it is on, switch off and check your timings again. Regards On 17 Mar 2014 04:40, "Brad Heller" wrote: > Hey all, > > I'm trying to figure out how InnoDB exec

SHOW CREATE TABLE suddenly slow on InnoDB?

2014-03-16 Thread Brad Heller
Hey all, I'm trying to figure out how InnoDB executes a SHOW CREATE TABLE query so I can figure out what could possibly have made them suddenly slow down? mysql> SHOW CREATE TABLE `my_table`; ... 1 row in set (37.48 sec) We tend to execute many of these statements concurrently, but it

Re: ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread hari jayaram
Sorry for another email. But this is just to expand on what SHawn said..I could also have created an index and then referenced the column. So without a primary key. I can create the parent , then create the child and the index . mysql> create TABLE parent ( id int(16) , name varchar(128))ENGINE=

Re: ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread hari jayaram
Thanks shawn for your reply. Your simplification of the innodb status message and this post which I just read (http://lists.mysql.com/mysql/221900 ) tells me what I am doing wrong. I need the referenced column to be indexed. I guess one way of ensuring that is to declare it as a primary key . So

Re: ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread Shawn Green (MySQL)
Hello Hari, You already posted the best answer we could provide :) On 2/22/2011 13:00, hari jayaram wrote: Hi I am getting a Foreign key error . ... I have attached the create table syntax for both the parent and child tables and the innodb status below. ... mysql> show innodb status; +---

ERROR 1005 (HY000): (errno: 150) details for show create table and innodb status given

2011-02-22 Thread hari jayaram
using readline 5.0 Thanks for your help Hari mysql> show create TABLE parent; ++-+ | Tab

BUG in 4.1.3 "SHOW CREATE TABLE": enum vs int

2004-07-03 Thread Juri Shimon
| | +---+---+-+--+--+--+ | b | enum('А','Б') | YES | | NULL | | <-- Ok +---+---+-+--+--+--+ show create table t1; show create table t2; ++ | t

RE: SHOW CREATE TABLE on one line?

2003-10-13 Thread Keith C. Ivey
On 13 Oct 2003 at 16:59, Adam Clauss wrote: > Well the issue wasn't so much with my program at runtime, but at > design time (now). What I am doing is hardcoding the string that > creates the table into the program. Program then calls SHOW CREATE > TABLE and compares the two

RE: SHOW CREATE TABLE on one line?

2003-10-13 Thread Adam Clauss
Well the issue wasn't so much with my program at runtime, but at design time (now). What I am doing is hardcoding the string that creates the table into the program. Program then calls SHOW CREATE TABLE and compares the two strings to see if they are the same. If not, it drops and recr

Re: SHOW CREATE TABLE on one line?

2003-10-13 Thread Paul DuBois
At 14:48 -0500 10/13/03, Adam Clauss wrote: I'm currently writing a program that will make use of the SHOW CREATE TABLE statement to verify that existing tables are correct (if not, it drops them and recreates). Why is it though that the SHOW CREATE TABLE statement returns the answer on mul

SHOW CREATE TABLE on one line?

2003-10-13 Thread Adam Clauss
I'm currently writing a program that will make use of the SHOW CREATE TABLE statement to verify that existing tables are correct (if not, it drops them and recreates). Why is it though that the SHOW CREATE TABLE statement returns the answer on multiple lines? Why not just one line? And

Re: show create table URGENT

2001-08-29 Thread Grigory Bakunov
Date |Tue, 28 Aug 2001 23:43:16 +0200 >From |"Martin Jeremic" <[EMAIL PROTECTED]> Hello! MJ> This is really stupid, but I can remember how to save results of "SHOW MJ> CREATE TABLE tbl_name" and "SHOW COLUMNS FROM tbl_name" in to text file. I'm MJ> running mysql 23.41 on Win2k. MJ> Thanks in ad

show create table URGENT

2001-08-28 Thread Martin Jeremic
This is really stupid, but I can remember how to save results of "SHOW CREATE TABLE tbl_name" and "SHOW COLUMNS FROM tbl_name" in to text file. I'm running mysql 23.41 on Win2k. Thanks in advance -- Martin Jeremic mail

Re: show create table

2001-07-31 Thread j.urban
Version 3.23.20 On Tue, 31 Jul 2001, Ansgar Becker wrote: > since which version was the "show create table" syntax introduced? - Before posting, please check: http://www.mysql.com/manual.php (the ma

show create table

2001-07-31 Thread Ansgar Becker
Hi, since which version was the "show create table" syntax introduced? I'm planning to implement it in MySQL-Front for the database-export-options, but I have to check the version first. Greetings, Ansgar Becker -

Re: does show create table work?

2001-06-07 Thread Rob Agar
fair enough. thanks! Rob - Original Message - From: "Andrew Schmidt" <[EMAIL PROTECTED]> To: "Rob Agar" <[EMAIL PROTECTED]>; "Mailinglist MySQL COM" <[EMAIL PROTECTED]> Sent: Wednesday, June 06, 2001 7:02 PM Subject: Re: does show create

Re: does show create table work?

2001-06-06 Thread j.urban
I believe SHOW CREATE TABLE was added in 3.23.20... http://www.mysql.com/doc/S/H/SHOW_CREATE_TABLE.html http://www.mysql.com/doc/N/e/News-3.23.20.html On Wed, 6 Jun 2001, Rob Agar wrote: > hi! > > Does SHOW CREATE TABLE x actually work? When I try it I just get error > 1064

Re: does show create table work?

2001-06-06 Thread Andrew Schmidt
6, 2001 11:48 AM Subject: does show create table work? > hi! > > Does SHOW CREATE TABLE x actually work? When I try it I just get error > 1064 (you have an error in your sql syntax near 'CREATE TABLE x') > > (version 3.22.32 on linux) > > ta, > Rob Agar >

does show create table work?

2001-06-06 Thread Rob Agar
hi! Does SHOW CREATE TABLE x actually work? When I try it I just get error 1064 (you have an error in your sql syntax near 'CREATE TABLE x') (version 3.22.32 on linux) ta, Rob Agar - Before posting, please chec