MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 23rd, 2000, 07:09 PM
bydavid bydavid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: USA
Posts: 67 bydavid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
i have a database in ms access with fields including number, money, and text. i want this to be on mysql.

i have tried using the export function to get it into a tab deliminated txt file and then inserting data, but text fields comeout having quotes around them, and some fields have a 0 instead of the number.

how can i convert my table data from access to a txt file and make it look the same on the mysql server?

Reply With Quote
  #2  
Old March 27th, 2000, 01:27 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
Hi David,

How r u doing?,

I don't have any idea about upsizing ms-access to Mysql(In Sqlserver we'll get upsizing wizard.Here also some tools must be their.Try to get some information from mysql support).

But for txt to mysql you can use Load data statement insted of mysqlimport.

LOAD DATA INFILE "C:mydiremp.txt" INTO TABLE emp;


full syntax for LOAD Data:

LOAD DATA INFILE 'emp.txt' INTO TABLE tbl_name FIELDS TERMINATED BY 't' ENCLOSED BY '"'LINES TERMINATED BY 'n';


You can escape from '"' using;
ESCAPED BY '"'


Hope you may get some hint from this...





[This message has been edited by Shiju Rajan (edited March 27, 2000).]

Reply With Quote
  #3  
Old March 27th, 2000, 08:08 PM
bydavid bydavid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: USA
Posts: 67 bydavid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi Shiju

im doing pretty good, im having tons of fun working with perl and mysql (much thanks to you and DEVSHED).

I was able to resolve my problem with the decimal points. It appears that he file that ms access creates adds a $ to the decimal values, after i remove this $ then it works fine.

Thanks for your help

Reply With Quote
  #4  
Old March 28th, 2000, 09:01 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
as a ridiculous aside - sad git that I am I have in the past (in frustration) exported MSaccess data into MSExcel and then exported that as a comma seperated file !!!! yes I am lazy (but it worked).

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #5  
Old March 29th, 2000, 01:08 AM
bydavid bydavid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: USA
Posts: 67 bydavid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
ehhee i kind of was lazy too. i got the file exported to a txt file and then used word to search/replace all the $ signs and then imported into the mysql table

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > access data -> txt file -> mysql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway