Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-09-2008, 05:24 PM   #1 (permalink)
Alpha Geek
 
choudang's Avatar
 
Join Date: Sep 2005
Location: Guwahati
Posts: 812
Default S.O.S. - MySQL import query


dear digitians,
requesting your valuable help to get it asorted.
Due to SOD, we are not permitted to install any database like orable/sql on our PCs, we are forced to use Access instead of other databases. but i am currently using MYSQL Community server which is not required installtion.
Now, we are getting DB dump in txt format which containts more than 2Lac data. With access, it takes time to run simple queries to get the results... so i will be using mysql.
Now, i need to convert the dump into a new table. i have tried with LOAD FILE but its not happening. I can not create a table to import cuz i won't have any idea about the dump contains
will be gr8 if i will get help for this.
__________________
For every action, there is an equal and opposite criticism.
choudang is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-09-2008, 05:40 PM   #2 (permalink)
Democracy is a myth
 
rhitwick's Avatar
 
Join Date: Apr 2004
Location: Kaikhali,Kolkata
Posts: 2,159
Default Re: S.O.S. - MySQL import query

Do u want to import the dump to any existing table or want to use the "file" as a table(m not quite clear on this)
__________________
"My opinions may have changed, but not the fact that I am right."

"I'm never wrong. Once I thought I was wrong, but I was wrong"
rhitwick is online now  
Old 02-09-2008, 06:38 PM   #3 (permalink)
Alpha Geek
 
choudang's Avatar
 
Join Date: Sep 2005
Location: Guwahati
Posts: 812
Default Re: S.O.S. - MySQL import query

want to use the "file" as a table first....

ps, dump are comma separed, sometimes its become ^/| etc...
__________________
For every action, there is an equal and opposite criticism.
choudang is offline  
Old 12-09-2008, 12:40 PM   #4 (permalink)
Alpha Geek
 
choudang's Avatar
 
Join Date: Sep 2005
Location: Guwahati
Posts: 812
Default Re: S.O.S. - MySQL import query

wow..... it seems that all are busy with hangouts....

anyway... attaching sample file... is there anyone to type a reply
Attached Files
File Type: txt sample.txt (112 Bytes, 1 views)
__________________
For every action, there is an equal and opposite criticism.
choudang is offline  
Old 12-09-2008, 05:09 PM   #5 (permalink)
In The Zone
 
Join Date: Dec 2007
Location: Mumbai
Posts: 270
Default Re: S.O.S. - MySQL import query

Place your text dump file in var/lib/mysql/DB_NAME in linux or program files/mysql/DB_NAME in windows..

DB_NAME = Name of database in which the table exists or will be created for importing data.

LOAD DATA INFILE 'Sample.txt' INTO TABLE
test_table FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY
'"' LINES TERMINATED BY '\n';

I hope this helps... if not, i shall look for other solution too..
__________________
Intel Q6600, Abit IP35-E, Transcend 2GB 800Mhz, Seagate 500GB(32MB) SATA II
EVGA 9600GT 512MB DDR3 Knock Out, Dell SE198WFP
ASUS DVD R/W 20X LightScribe, Zebronics Antibiotic, Cooler Master 500W
mastermunj is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unicode search query in MySQL sachin_kothari Programming 9 27-03-2008 10:19 PM
Import other site 2 urs ! ! ! ax3 Programming 9 28-02-2008 12:28 PM
mySQL query help REY619 QnA (read only) 3 14-03-2007 11:56 AM
How to import a laptop! futuristically_ancient Laptops and Netbooks 2 25-07-2005 11:25 AM

 
Latest Threads
- by abhidev
- by clinton

Advertisement




All times are GMT +5.5. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2