Innodb Choosing Random Index

2010-07-11 Thread arijit bhattacharyya
Hi , i am running into trouble due to wrong index chosen by mysql in some particular type of queries . This is happening in a critical production environment where we have deployment in two different colocations . I am seeing that a paticular query is using one index in one set of hosts another

Re: Innodb Choosing Random Index

2010-07-11 Thread arijit bhattacharyya
optimize / analyze table in each of the hosts is not a good option for me , this is an in-production set-up with minimal number of boxes in rotation . On Sun, Jul 11, 2010 at 5:57 PM, arijit bhattacharyya new2mys...@gmail.comwrote: Hi , i am running into trouble due to wrong index chosen by

Re: Innodb Choosing Random Index

2010-07-11 Thread Prabhat Kumar
You you send us explain of that query. On Sun, Jul 11, 2010 at 6:31 PM, arijit bhattacharyya new2mys...@gmail.comwrote: optimize / analyze table in each of the hosts is not a good option for me , this is an in-production set-up with minimal number of boxes in rotation . On Sun, Jul 11,

Re: Innodb Choosing Random Index

2010-07-11 Thread Leonardo Leonardo
On Sun, Jul 11, 2010 at 7:07 PM, Leonardo Leonardo new2mys...@gmail.comwrote: Here is the structure of the Table T1 ( ENGINE=InnoDB ) - `c1` varchar(128) NOT NULL default '', `c2` int(11) NOT NULL default '0', `c3` varchar(32) NOT NULL default '', `c4` blob, `c5` double default

Re: Innodb Choosing Random Index

2010-07-11 Thread Dan Nelson
In the last episode (Jul 11), Leonardo Leonardo said: On Sun, Jul 11, 2010 at 7:07 PM, Leonardo Leonardo new2mys...@gmail.comwrote: Here is the structure of the Table T1 ( ENGINE=InnoDB ) - `c1` varchar(128) NOT NULL default '', `c2` int(11) NOT NULL default '0', `c3`

Mysql 4 to 5

2010-07-11 Thread Grant Peel
Hi all, I recently migrated a script called perldesk from mysql 4 to mysql 5. When I envoke the script from the web, I am now getting an error. I suspect its a version syntax thing. Here is what I see: Couldn't execute statement: You have an error in your SQL syntax; check the manual that

Re: Mysql 4 to 5

2010-07-11 Thread Michael Dykman
One problem you might be having is the column named 'call'.. It's a keyword, so perhaps you might get away with backticking it?ie. `call` Also, you shouldn't need that final semi-colon inside your statement string.. I have had preparedstatement interfaces give me grief about that. As I

Re: Mysql 4 to 5

2010-07-11 Thread Grant Peel
- Original Message - From: Michael Dykman mdyk...@gmail.com To: Grant Peel gp...@thenetnow.com Cc: mysql@lists.mysql.com Sent: Sunday, July 11, 2010 9:20 PM Subject: Re: Mysql 4 to 5 One problem you might be having is the column named 'call'.. It's a keyword, so perhaps you might get

MySQL Workbench - libmdcanvasgtk.so.0: undefined symbol: pixman_image_unref

2010-07-11 Thread James Corteciano
Hi All, I have downloaded mysql-workbench-oss-5.2.14-1rhel5.i386.rpm to test the MySQL GUI tools. I've installed it with no errors. When I run the 'mysql-workbench' command, it gives me error message: # mysql-workbench /usr/bin/mysql-workbench-bin: symbol lookup error:

Re: Mysql 4 to 5

2010-07-11 Thread Grant Peel
- Original Message - From: Grant Peel gp...@thenetnow.com To: Michael Dykman mdyk...@gmail.com Cc: mysql@lists.mysql.com Sent: Sunday, July 11, 2010 9:25 PM Subject: Re: Mysql 4 to 5 - Original Message - From: Michael Dykman mdyk...@gmail.com To: Grant Peel

Re: Mysql 4 to 5

2010-07-11 Thread Rudy Lippan
Grant Peel wrote: Hi all, I recently migrated a script called perldesk from mysql 4 to mysql 5. When I envoke the script from the web, I am now getting an error. I suspect its a version syntax thing. Here is what I see: Couldn't execute statement: You have an error in your SQL

Re: Mysql 4 to 5

2010-07-11 Thread Rudy Lippan
Michael Dykman wrote: One problem you might be having is the column named 'call'.. It's a keyword, so perhaps you might get away with backticking it?ie. `call` Also, you shouldn't need that final semi-colon inside your statement string.. I have had preparedstatement interfaces give me

Re: Problem with IF() inside of a select statement

2010-07-11 Thread Shawn Green (MySQL)
On 7/8/2010 10:59 AM, John Nichel wrote: Hi, I'm hoping what I'm trying to do can be done, but I can't seem to find the right syntax. I have the following query: SELECT ... snipped ... if( (

Re: WTA Query For Winner Drawing

2010-07-11 Thread Shawn Green (MySQL)
On 7/9/2010 3:04 AM, sangprabv wrote: Dear List, I'm developing a winner drawing application using PHP+MySQL. As we know that MySQL has a built in function RAND() to randomize the result. But using that function will only randomize, my goal is the player with higher point gets higher