Joinutility seperatorLogin utility separator Infobright.com
   
3 of 3
3
Problems using LOAD DATA INFILE—can anyone help me?
Posted: 06 March 2009 12:58 PM   Ignore ]   [ # 31 ]  
Newbie
Rank
Total Posts:  19
Joined  2009-01-24

The MySQL client is the command line stuff?  If so that’s not really a reasonable approach IMHO.  If there’s some other decent UI tool let me know.
Thanks.

Profile
 
Posted: 06 March 2009 10:02 PM   Ignore ]   [ # 32 ]  
Jr. Member
Avatar
RankRank
Total Posts:  96
Joined  2008-08-18

Does this thread help you?

Signature 

Brian Beharry, QA
Infobright

Profile
 
Posted: 07 March 2009 11:33 AM   Ignore ]   [ # 33 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-01-29

XSPRADA_MAN

I would recommend promulgating another option… having access to the native MySQL calls referenced through the command line UI.  Such a “native” driver could be leveraged by BI applications’ multi-step SQL engines with quality and reliability of command line.

Also, an important question is whether MySQL has facility to allow connection to be established, persisted, and ended outside of the wrapper of command line instantiations? 

Regards,

Profile
 
Posted: 09 March 2009 01:41 PM   Ignore ]   [ # 34 ]  
Jr. Member
Avatar
RankRank
Total Posts:  96
Joined  2008-08-18

XSPRADA_MAN,

You may want to try a tool called Toad which is free:
http://www.toadsoft.com/toadmysql/Overview.htm
Note: Toad requires .NET.


Also, there is Navicat, but it’s not free:
http://www.navicat.com/

Signature 

Brian Beharry, QA
Infobright

Profile
 
Posted: 12 March 2009 08:29 AM   Ignore ]   [ # 35 ]  
Jr. Member
RankRank
Total Posts:  75
Joined  2008-10-22

I know this disussion turned a bit away from the first posted problem ..

But I think I can shed some light into the ” Brighthouse: Session terminated unexpectedly, uncommitted transactions rolled back.” problem:

mysqlSet AUTOCOMMIT=0;
Query OK0 rows affected (0,00 sec)

mysql>  LOAD DATA INFILE '/data/accesslogs/filecleaned.tsv' INTO TABLE referrer_access_log_200903 FIELDS TERMINATED BY "\t" ENCLOSED BY '"';
ERROR 1402 (XA100): BrighthouseSession terminated unexpectedlyuncommitted transactions rolled back.
mysqlSet AUTOCOMMIT=1;
Query OK0 rows affected (0,01 sec)

mysql>  LOAD DATA INFILE '/data/accesslogs/filecleaned.tsv' INTO TABLE referrer_access_log_200903 FIELDS TERMINATED BY "\t" ENCLOSED BY '"';
ERROR 2 (HY000): Wrong data or column definitionRow12773field20. 

It seems that the Brighthouse loader returns different error messages depending on whether or not the AUTOCOMMIT-flag is turned off.

In the end the problem is caused by some irregularities in the data (the data is simply longer than the allowed size for the field). Ommitting this line successfully loads the file - at least in my case

Signature 

Chris (cvh@LE),
Leipzig, Germany

Profile
 
Posted: 12 March 2009 10:35 AM   Ignore ]   [ # 36 ]  
Jr. Member
Avatar
RankRank
Total Posts:  96
Joined  2008-08-18

Chris, what operating system did you use for switching autocommit to 0 or 1?

Signature 

Brian Beharry, QA
Infobright

Profile
 
Posted: 12 March 2009 06:03 PM   Ignore ]   [ # 37 ]  
Jr. Member
RankRank
Total Posts:  75
Joined  2008-10-22

Linux 64 Bit (CentOS 5.2)

Why?

Signature 

Chris (cvh@LE),
Leipzig, Germany

Profile
 
Posted: 13 March 2009 10:24 AM   Ignore ]   [ # 38 ]  
Jr. Member
Avatar
RankRank
Total Posts:  96
Joined  2008-08-18

I think it only occurs on Cent OS.

Signature 

Brian Beharry, QA
Infobright

Profile
 
Posted: 13 March 2009 02:27 PM   Ignore ]   [ # 39 ]  
Jr. Member
Avatar
RankRank
Total Posts:  96
Joined  2008-08-18

Regarding the autocommit stuff, defect 1274 has been created.

Signature 

Brian Beharry, QA
Infobright

Profile
 
   
3 of 3
3