mySQL Administrator 1.1.9 warning message

2006-03-02 Thread Neil Tompkins
I am running mySQL database version 3.23.58, but I'm using mySQL Administrator 1.1.9 for scheduled backups. When connecting to the database I get a message saying that this version of database is not supported and I might get unexpected behaviour. Am I OK to use this version of mySQL Administr

RE: mysqldump backup on filters

2006-03-02 Thread Rithish Saralaya
>Your table is missing. Try this: ?>mysqldump --single-transaction -u root clientdb --where="FLD_CLIENT_ID=1" > client1_dbbackup.sql Yes. The tables are missing. That's because I want the backup of all the tables in the db, and those tables that have the column FLD_CLIENT_ID, they should be fil

RE: create/restore database without binary logging

2006-03-02 Thread Rithish Saralaya
Thanks Sheeri. Regards, Rithish. -Original Message- From: sheeri kritzer [mailto:[EMAIL PROTECTED] Sent: Thursday, March 02, 2006 11:26 PM To: Rithish Saralaya Cc: MySQL general mailing list Subject: Re: create/restore database without binary logging Rithish, It's possible to do this b

rpm mysql5.0 for fedora4

2006-03-02 Thread unplug
Hi, I found that there are 2 versions of mysql 5.0 rpm for download. Linux x86 generic RPM (statically linked against glibc 2.2.5) downloads Linux x86 generic RPM (dynamically linked) downloads What is the difference between them? How to determine what version should I use for fedora4? -- M

Re: CONCAT() returns not correct character set

2006-03-02 Thread Hirofumi Fujiwara
Hi, Is there any difference between _binary'Binary' and CONVERT('Binary' USING binary) mysql> SELECT CHARSET(CONCAT(_binary'Bianry',CONVERT('abc' USING latin1))); +--+ | CHARSET(CONCAT(_binary'Bianry',CONVERT('abc' USING latin1))) | +-

Building Client Program

2006-03-02 Thread baynaa
Hi all, I am building client program on MySQL 4.0.16 with C API. But I always get error like: make all-recursive gcc -I. -I/usr/home/vpopmail/include -I/usr/local/include/mysql -g -O2 -c user.c user.c: In function `delalert': user.c:357: syntax error before `*' user.c:358: `conn' und

Re: Can't select to outfile

2006-03-02 Thread unplug
You have to enable the file_permission for the user in order to create file. On 3/3/06, Bruce Bales <[EMAIL PROTECTED]> wrote: > I'm using mysql 3.23.58 on linux. I recently upgraded from RedHat 9 to Fedora > 3 and now I am unable to write to an outfile. > > If I have started mysql with the simpl

Can't select to outfile

2006-03-02 Thread Bruce Bales
I'm using mysql 3.23.58 on linux. I recently upgraded from RedHat 9 to Fedora 3 and now I am unable to write to an outfile. If I have started mysql with the simple "mysql" I get 'access denied' even if I am trying to put it into my home directory. mysql> select lname,fname,mname,addr,city,stz

Re: MySQL and Hyperthreading

2006-03-02 Thread Hiro Yoshioka
Hi Atle, We are using Asianux 2.0 (RHEL 4 compatible, linux kernel 2.6.9) MySQL is the latest one. 5.0.x Thanks in advance, Hiro From: Atle Veka <[EMAIL PROTECTED]> Subject: Re: MySQL and Hyperthreading Date: Thu, 2 Mar 2006 10:12:09 -0800 (PST) Message-ID: <[EMAIL PROTECTED]> > Hi Hiro, we h

Re: TimeStamp issue

2006-03-02 Thread sheeri kritzer
On 3/2/06, rtroiana <[EMAIL PROTECTED]> wrote: > Thanks to all of you for replying. I'm using DATETIME instead of TIMESTAMP > now. Although I still haven't find the answer for my second question. > > > > > > I used to use > > > "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" as default value for my

RE: TimeStamp issue

2006-03-02 Thread rtroiana
Thanks to all of you for replying. I'm using DATETIME instead of TIMESTAMP now. Although I still haven't find the answer for my second question. > > I used to use > > "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" as default value for my > > TimeStamp column. Is there a way to assign default v

Re: MyISAM Backup

2006-03-02 Thread gerald_clark
Jeff wrote: Currently I backup my MyISAM tables every night by running a shell script that does the following: Run: Mysqlanalyze, mysqlrepair, mysqloptimize on all the tables Then shutdown mysql Then tar all the .MYI, .MYD and .frm files from the database's directory to a backup director Star

Re: TimeStamp issue

2006-03-02 Thread Rhino
Thanks for keeping me honest! I'd forgotten that MySQL timestamps don't keep the fractional parts of seconds either; I mostly use DB2 which keeps the fractional parts (microseconds) and forgot about this quirk of MySQL.   -- Rhino - Original Message - From: [EMAIL PROTECTED]

MyISAM Backup

2006-03-02 Thread Jeff
Currently I backup my MyISAM tables every night by running a shell script that does the following: Run: Mysqlanalyze, mysqlrepair, mysqloptimize on all the tables Then shutdown mysql Then tar all the .MYI, .MYD and .frm files from the database's directory to a backup director Start MySQL again.

RE: Replication from multiple masters?

2006-03-02 Thread Jeff
Sorry for the top post, just saying thanks, that's what I thought Back to the drawing board... Jeff > -Original Message- > From: David Griffiths [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 01, 2006 18:13 > To: mysql@lists.mysql.com > Cc: [EMAIL PROTECTED] > Subject: Re: Repli

Fw: TimeStamp issue

2006-03-02 Thread Rhino
I'm putting this back on the list where it belongs; that enables everyone to benefit from the discussion, both now and in the future via the archives. -- Sorry, you're right, I didn't read your entire question thoroughly. You set the default value for a DATETIME column (or any other type for t

RE: Want mysql to return tablename.fieldname format

2006-03-02 Thread Ryan Stille
The query has a number of joins and it was selecting * from all the tables, so it was not apparent where each 'id' field was from. It was just a poorly written query all around. I've fixed the problem by narrowing down the number of fields it selects and giving the ambiguous fields specific names

Qyery help - pass string to stored procedure for IN clause

2006-03-02 Thread Price, Randall
I have a SELECT query that looks similar to the following: SELECT FirstName, LastName FROM myTable WHERE LastName IN ('PRICE', 'SMITH'); What I want to do is create a stored procedure for this SELECT query similar to the following: CREATE PROCEDURE

Re: TimeStamp issue

2006-03-02 Thread SGreen
In fact, no time values in MySQL are fractional (yet). All times are stored to the nearest second regardless of which date-time-like storage type you use. They way Rhino phrased his answer, it sounded as though TIMSTAMP would save fractional seconds. It doesn't. He is spot on about needing a se

Re: TimeStamp issue

2006-03-02 Thread Rhino
If you need a broader range of dates, you could use DATETIME instead of TIMESTAMP: DATETIME can handle the range '1000-01-01 00:00:00' through '-12-31 23:59:59'. The only big difference is that DATETIME does not store the fractional part of the seconds, e.g. milliseconds/microseconds/nanons

Re: Want mysql to return tablename.fieldname format

2006-03-02 Thread Rhino
I don't understand what you want. If you have the original query, it should be apparent from it where each 'id' column originated. If you're not sure how to read the query, post it and we can help you figure out which table provided each 'id' column. -- Rhino - Original Message - Fro

Re: MySQL and Hyperthreading

2006-03-02 Thread Atle Veka
Hi Hiro, we have noticed severe performance loss with HT enabled under FreeBSD but not with MySQL. However, we could be having problems with MySQL as well without knowing as we haven't done any testing as it is operating fine. What operating system are you running? We now disable HT on all servers

Fwd: browsing in search-results

2006-03-02 Thread sheeri kritzer
What makes you think that temporary tables would have better performance than LIMIT? I'm not saying they do, or don't, just wondering what makes you say that. Each query, yes, would make a new temporary table. However, once that session disconnects, the temporary table goes away. Something to t

Re: CONCAT() returns not correct character set

2006-03-02 Thread sheeri kritzer
Hi there, I tried a few other queries: first, confirm that what you think is a binary is indeed a binary: mysql> SELECT CHARSET(_binary'Binary'); +--+ | CHARSET(_binary'Binary') | +--+ | binary | +--+ 1 row

RE: create/restore database without binary logging

2006-03-02 Thread Ryan Stille
Put "SET SQL_LOG_BIN=0" at the top of your dump file. That will turn off logging just for your session. -Ryan > -Original Message- > From: sheeri kritzer [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 02, 2006 11:56 AM > To: Rithish Saralaya > Cc: MySQL general mailing list > Subje

Re: problem with transfer databases from different Mysql versions

2006-03-02 Thread sheeri kritzer
It helps if you provide the error messages. Sincerely, -Sheeri On 2/26/06, Xiaobo Chen <[EMAIL PROTECTED]> wrote: > Hi, all > > I have installed a portal server and which has Mysql 4.0.15-nt with it. > Before I installed this server, I have Mysql 4.1 in my PC. But thing is > that they will confl

Re: create/restore database without binary logging

2006-03-02 Thread sheeri kritzer
Rithish, It's possible to do this by turning off binary logging, restarting the server, importing, turning on binary logging, and restarting. -Sheeri On 2/27/06, Rithish Saralaya <[EMAIL PROTECTED]> wrote: > Hello. > > I was going to recreate a database of size 35 GB from sql dump file. Wanted >

Re: Want mysql to return tablename.fieldname format

2006-03-02 Thread SGreen
"Ryan Stille" <[EMAIL PROTECTED]> wrote on 03/02/2006 12:42:01 PM: > I am working with an existing compilcated query someone wrote years ago. > When I dump the data from the query to try to figure out why I'm getting > unexpected data, I have three fields named "id". Is there anyway to > tell mys

RE: Want mysql to return tablename.fieldname format

2006-03-02 Thread Marciano [Intercol]
Yes. You can add on SELECT syntax the AS operation, like this: SELECT ads.id AS 'ads.id', track.id AS 'track.id' FROM . -Original Message- From: Ryan Stille [mailto:[EMAIL PROTECTED] Sent: Thursday, March 02, 2006 2:42 PM To: mysql@lists.mysql.com Subject: Want mys

Re: dumping results of a select

2006-03-02 Thread SGreen
2wsxdr5 <[EMAIL PROTECTED]> wrote on 03/02/2006 12:30:17 PM: > Is there a way with mysqldump to instead of dumping the contents of a > table dump the contents of a select so if you import that sql back in > you will get a new table that looks like the select? > > -- > Chris W > KE5GIX > > Gif

Want mysql to return tablename.fieldname format

2006-03-02 Thread Ryan Stille
I am working with an existing compilcated query someone wrote years ago. When I dump the data from the query to try to figure out why I'm getting unexpected data, I have three fields named "id". Is there anyway to tell mysql to name the fields with the table name when they are returned, so they sh

RE: dumping results of a select

2006-03-02 Thread George Law
mysqldump has a -w option: -w, --where= dump only selected records; QUOTES mandatory! -- George > -Original Message- > From: 2wsxdr5 [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 02, 2006 12:30 PM > To: 'MySQL general mailing list' > Subject: dumping results of a select >

RE: dumping results of a select

2006-03-02 Thread jblanchard
[snip] Is there a way with mysqldump to instead of dumping the contents of a table dump the contents of a select so if you import that sql back in you will get a new table that looks like the select? [/snip] I don't think so, but you could use INTO OUTFILE -- MySQL General Mailing List For lis

dumping results of a select

2006-03-02 Thread 2wsxdr5
Is there a way with mysqldump to instead of dumping the contents of a table dump the contents of a select so if you import that sql back in you will get a new table that looks like the select? -- Chris W KE5GIX Gift Giving Made Easy Get the gifts you want & give the gifts they want One stop w

RE: mysqldump backup on filters

2006-03-02 Thread Marciano [Intercol]
Your table is missing. Try this: ?>mysqldump --single-transaction -u root clientdb --where="FLD_CLIENT_ID=1" > client1_dbbackup.sql -Original Message- From: Rithish Saralaya [mailto:[EMAIL PROTECTED] Sent: Thursday, March 02, 2006 1:23 PM To: MySQL general mailing list Subject: mysqldum

Re: TimeStamp issue

2006-03-02 Thread gerald_clark
rtroiana wrote: Hi All, I have recently noticed in the MySQL 5.0 documentation in section 11.3.1. The DATETIME, DATE, and TIMESTAMP Types, it's mentioned that "TIMESTAMP values cannot be earlier than 1970 or later than 2037. This means that a date such as '1968-01-01', while legal as a D

RE: apostrophe char problem

2006-03-02 Thread George Law
Halid, I think this is a php/phpmyadmin problem and not really a mysql problem. PHP has an option called "magic quotes" that may be causing this. http://us2.php.net/manual/en/function.get-magic-quotes-gpc.php I have run into this before - I think what happens is that magic quotes will change

Re: apostrophe char problem

2006-03-02 Thread sprock
Something is double escaping the strings. Check if GPC magic string is enabled (apache's auto escaping). Also check if your code manually escapes the strings. Halid Faith wrote: Hello I use mysql 4.1.16 and php4.3.10 and phpmyadmin2.7 and apache-2.0.53 on FreeBSD5.3 I add any text as data wit

apostrophe char problem

2006-03-02 Thread Halid Faith
Hello I use mysql 4.1.16 and php4.3.10 and phpmyadmin2.7 and apache-2.0.53 on FreeBSD5.3 I add any text as data with phpadmin on web. it works well. But I have a problem. As example if I add a text to mysql table with phpadmin. My text contains as below; "Halid 's car is expensive" I will see a

mysqldump backup on filters

2006-03-02 Thread Rithish Saralaya
Hello. We have a database driven system that serves multiple clients. We have a single database for this purpose. The data(rows) in some of the tables are specific to individual clients. In all such tables, we have a field FLD_CLIENT_ID whose value depicts the client to whom that row of informatio

Re: Getting every other value in a select

2006-03-02 Thread Giuseppe Maxia
[EMAIL PROTECTED] wrote: > This might be a bit odd, but here we go.. > > I have some data in a table that has the following structure: > [SNIP] > The data is logged once a second. The StartTimeAndDate will be the same > for the particular workpiece that I am interested in. > I pull out the da

TimeStamp issue

2006-03-02 Thread rtroiana
Hi All, I have recently noticed in the MySQL 5.0 documentation in section 11.3.1. The DATETIME, DATE, and TIMESTAMP Types, it's mentioned that "TIMESTAMP values cannot be earlier than 1970 or later than 2037. This means that a date such as '1968-01-01', while legal as a DATETIME or DATE va

Re: Getting every other value in a select

2006-03-02 Thread SGreen
<[EMAIL PROTECTED]> wrote on 03/02/2006 06:55:14 AM: > This might be a bit odd, but here we go.. > > I have some data in a table that has the following structure: > > CREATE TABLE `gaugereportinglist` ( > > `Updated` timestamp NOT NULL default > CURRENT_TIMESTAMP on update

Re: help regarding writing a query

2006-03-02 Thread Rhino
I'm not sure but the situation you are describing sounds like the so-called "Bill of Materials" Problem, sometimes called BOM for short. I'm certain that some databases provide SQL to handle BOM problems; for example, DB2 which I know quite well, provides for BOMs. However, I just did a search

Getting every other value in a select

2006-03-02 Thread andy.lawton
This might be a bit odd, but here we go.. I have some data in a table that has the following structure: CREATE TABLE `gaugereportinglist` ( `Updated` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `StartTimeAndDate` datet

Re: Elementary replication

2006-03-02 Thread Marciano G. Bosi [Intercol]
You can do with one line: replicate-do-table = db.table1, db.table2, db.table3 - Original Message - From: "Rob Gormley" <[EMAIL PROTECTED]> To: Sent: Monday, February 27, 2006 10:35 PM Subject: Elementary replication Hi, Not having a lot of luck with replication. Have 2 4.1x boxes

help regarding writing a query

2006-03-02 Thread VenuGopal Papasani
HI all, This is venugopal.Being a silent member of this group.I am having a doubt regarding writing a query.I can explain it with an example Consider i have a table called GetParents The table consists of two fieds called num as Integer ParentNum

Re: UPDATE from monthly to yearly rows

2006-03-02 Thread C.R.Vegelin
Thanks Peter, I didn't know that MySQL has no UPDATE ... SELECT command. I followed your advice and made the following query UPDATE Data AS db INNER JOIN (SELECT myKey,Year, SUM(IF(Month= 1,Cell,Null)) AS `Jan`, ... SUM(IF(Month=12,Cell,Null)) AS `Dec` FROM Updates GROUP BY myKey, Year) AS