mysql5.4 bugs about mysqladmin??

2009-05-19 Thread 周彦伟
Hi,I'm using mysql5.4-beta now.when I use flow command ,it does not works,is mysql5.4 bug? The command mysqladmin -p -r --sleep=1 --count=100 extended-status It run only one time. Thanks! -邮件原件- 发件人: mos [mailto:mo...@fastmail.fm] 发送时间: 2009年5月18日 2:14 收件人: mysql@lists.mysql.com

Re: load data into temporary table

2009-05-19 Thread Janek Bogucki
Hi, mysql create temporary table t(i int); mysql \! echo 1 /tmp/data.txt mysql load data infile '/tmp/data.txt' into table t; Query OK, 1 row affected (0.00 sec) Records: 1 Deleted: 0 Skipped: 0 Warnings: 0 mysql select * from t; +--+ | i| +--+ |1 | +--+ 1 row in set

Re: load data into temporary table

2009-05-19 Thread Alex K
Thank you but the real problem occurs when you don't know the schema of the table in advance. If data.txt has two columns columns how can I still load it in a temporary table? I'm asking this question because I'd like to add an import csv feature to a web application. I know that you can load data

row level lock

2009-05-19 Thread bharani kumar
Hi all How to use the row level locaking in innodb , i dont know, even in my friend circle also , they are not worked in the row level locking and all , Can u please tell som brifly also with some example snippet's thanks -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR

mysql not able to import mysqldump file

2009-05-19 Thread Neil Aggarwal
Hello: I have a database with several double columns in the tables. I used mysqldump to dump the data from the primary database and I am trying to import it into a secondary database. I am importing the data by passing the generated sql file to the mysql command line client. When I do that, I

What is wrong with this SYNTAX?

2009-05-19 Thread Alex Katebi
It is complaining about near STRCMP. CREATE TRIGGER bgp.tglobal BEFORE UPDATE on bgp.global FOR EACH ROW BEGIN IF STRCMP(NEW.Variable_name,'ASN') != 0 THEN set NEW.Variable_name=NULL; ELSEIF STRCMP(NEW.Variable_name, 'RouterId') != 0 THEN set NEW.Variable_name=NULL ELSEIF

RE: What is wrong with this SYNTAX?

2009-05-19 Thread Rolando Edwards
DELIMITER $$ CREATE TRIGGER bgp.tglobal BEFORE UPDATE on bgp.global FOR EACH ROW BEGIN IF STRCMP(NEW.Variable_name,'ASN') != 0 THEN set NEW.Variable_name=NULL; ELSEIF STRCMP(NEW.Variable_name, 'RouterId') != 0 THEN set NEW.Variable_name=NULL (-- Missing Semicolon) ELSEIF

RE: mysql not able to import mysqldump file

2009-05-19 Thread Gavin Towey
Hi Niel, What version is the mysql dump from? Are you importing to a different version? Could you show the line from the file that is generating the error? Regards, Gavin Towey -Original Message- From: Neil Aggarwal [mailto:n...@jammconsulting.com] Sent: Tuesday, May 19, 2009 6:56 AM

RE: load data into temporary table

2009-05-19 Thread Gavin Towey
Hi Alex, It is true that use LOAD DATA INFILE you do need to know the schema of the table. I'm not sure how useful it would be to import arbitrary data if you don't have some expectations about what that data is. There are a couple options for you: 1. Make sure your users upload a CSV is a

RE: mysql not able to import mysqldump file

2009-05-19 Thread Neil Aggarwal
Gavin: Both servers are mysql-server.x86_64 5.0.45-7.el5 installed using yum on CentOS 5. I was able to work around it by doing a global replace of that string with 1.79769313486e+308 since it apparently just barely exceeded the max double value. The values were originally stored using the Java

RE: mysql not able to import mysqldump file

2009-05-19 Thread Martin Gainty
Neil- http://wiki.seas.harvard.edu/geos-chem/index.php/Floating_point_math_issues so a value this large or small would only be true for 8byte double datatype Curious as to what the original Table/Column datatype is hth Martin __ Jogi és Bizalmassági

RE: What is wrong with this SYNTAX?

2009-05-19 Thread Rolando Edwards
DELIMITER $$ CREATE TRIGGER bgp.tglobal BEFORE UPDATE on bgp.global FOR EACH ROW BEGIN IF STRCMP(NEW.Variable_name,'ASN') != 0 THEN set NEW.Variable_name=NULL; ELSEIF STRCMP(NEW.Variable_name, 'RouterId') != 0 THEN set NEW.Variable_name=NULL (-- Missing Semicolon) ELSEIF

RE: mysql not able to import mysqldump file

2009-05-19 Thread Neil Aggarwal
Martin: Both tables have double for the column. Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: