Re: project/extract similar items type, inside a table field as if a field itself

2010-08-12 Thread MadTh
Hi Travis, Super Thanks a ton On Fri, Aug 13, 2010 at 5:40 AM, Travis Ard wrote: > Maybe something like this: > > select >user_id >,max(if(meta_key = 'zip_code', meta_value, null)) as zip_code >,max(if(meta_key = 'first_name', meta_value, null)) as first_name >,max(if(met

RE: project/extract similar items type, inside a table field as if a field itself

2010-08-12 Thread Travis Ard
Maybe something like this: select user_id ,max(if(meta_key = 'zip_code', meta_value, null)) as zip_code ,max(if(meta_key = 'first_name', meta_value, null)) as first_name ,max(if(meta_key = 'last_name', meta_value, null)) as last_name from wp_usermeta group by user_id; -Travis --

project/extract similar items type, inside a table field as if a field itself

2010-08-12 Thread MadTh
Hi, There is a mysql table ( wordpress) as following, called wp_usermeta, where field meta_key holds zip_code , first_name, last_name inside it ( should have been separate fields to extract data easily) mysql> desc wp_usermeta; ++-+--+-+-+

mysql is crashing

2010-08-12 Thread Yectli Huerta
Hello, I compiled a version of mysql 5.1.49 and it crashed a couple of times already. I recompiled it with debug enabled and this is the error I got. Do any of you guys/gals have any suggestions? thanks, this is from the trace file: do_select: info: select cond 0xb7e088 do_select: info: select

Re: RHEL Auto Start / stop mysql???

2010-08-12 Thread Nunzio Daveri
Hi Guifre, thanks for answering. I already have mysql installed and works just fine, but I did untar and then go to folder and run. I used what is called mysql no-install so no yum, rpm etc.. No files in /etc/init.d and no startup or services script since this is using the no-install version

RESET MASTER doesn't work

2010-08-12 Thread Joe Hammerman
Hello MySQL-users list, We are having an issue with replication and binlog files and I was hoping that this list could shed a little light on the issue for us. We have a pair of 5.1.41-community MySQL servers. We attempted to restore from the slave server, and in the process I zeroed out the my

Re: RHEL Auto Start / stop mysql???

2010-08-12 Thread Guifre Bosch Fabregas
hi Nunzio! Sorry but my english is very poor... (reading and writing! Thanks http://translate.google.com/ ! ) At first can you install yet mysql? If you have installet yet mysql you can go to /etc/init.d and look if the startup script is in this directory. I understand your question right?

RHEL Auto Start / stop mysql???

2010-08-12 Thread Nunzio Daveri
Hi all, I just installed the no-install version of mysql 5.1.44 on our RHEL 5 box AFTER I yum removed the older 4.X version. The question is how do I tell RHEL to auto start and stop mysql when I have to reboot the server? I know that if you use an rpm or a yum it kinda / sorta created a mysq

RE: opened_table status

2010-08-12 Thread jitendra ranjan
As our file descriptor does not allow to increase the table_cache is there any other way to decrease the occurence of opened_table ? --- On Fri, 13/8/10, Gavin Towey wrote: From: Gavin Towey Subject: RE: opened_table status To: "jitendra ranjan" , "mysql@lists.mysql.com" Date: Friday, 13 Au

RE: opened_table status

2010-08-12 Thread Gavin Towey
You don't need to flush tables, just increase the table_cache. -Original Message- From: jitendra ranjan [mailto:jitendra_ran...@yahoo.com] Sent: Thursday, August 12, 2010 10:55 AM To: mysql@lists.mysql.com Subject: opened_table status Hi, I have opened_table status is too high but i don'

Re: idle query

2010-08-12 Thread Mike Spreitzer
I also find that if I have both tables in MyISAM and use STRAIGHT_JOIN to force the better query plan (enumerate the longer table, for each longer table row use the shorter table's index to pick out the one right matching row from the shorter table) then the server has low I/O utilization but t

opened_table status

2010-08-12 Thread jitendra ranjan
Hi,   I have opened_table status is too high but i don't want increase the value of table_cache and also dont want to flush table because it will reset the query cache.   Now my question is how can i decrease the opened_table status ?   Thanks in advance   Jeetendra Ranjan MySQL DBA

Re: Searching For Modules In a DB

2010-08-12 Thread walter harms
Carlos Mennens schrieb: > I have a database called 'gaming' and with in that database there are > several tables and data. I was asked to find a module called 'ako > ldap' and disable it (setting it from 1 to 0). My question is how in > MySQL do I search for a string if I don't even know what tab