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:
  #1  
Old August 27th, 2000, 11:20 AM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Okay, first time in doing something like this, I need to get an Access database into mySQL..

Is there an simple solution to this, does MS Access give me the ability to export the database into an "SQL" file??

With all the structure and data intact?

In short, I'm looking for a quick way of gett ing all the data out of Access and into MySQL for use on the web..

Any help would be quite appreciated.

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #2  
Old August 27th, 2000, 04:37 PM
RyanP
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
i have done this, but instead of spending time to find a "simple" solution for this i just exported the tables to a tab delimited text file and then wrote a simple php script to read in the data and store it in a mysql db

this was pretty quick and easy, but if there is some kind of "accessdump" feature, i would love to hear about it too

Reply With Quote
  #3  
Old August 27th, 2000, 05:00 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Well, I'd go that route, but since I don't know much about Access, and I didn't create this database, I'm not even sure what the current database structure is... So creating a the tables would would make it a bit difficult to simply use the CSV data.. I dunno..



------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #4  
Old August 27th, 2000, 11:12 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 12 m 27 sec
Reputation Power: 56
The MySQL website has a page of links to third-party software and utilities at
http://www.mysql.com/information/links.html

The one you want is called ExportSQL, at
http://www.cynergi.net/exportsql/

This is an Access module to dump an Access database into mysql-readable script, including table drop, and create, and it even (mostly) handles type conversion. You might have to edit the resulting SQL file for certain column type conversions, but it's generally right on the money.

Reply With Quote
  #5  
Old August 28th, 2000, 10:57 AM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks for the link and the response.

I've downloaded the text file from the site, but I'm still not really sure "how" to use it.

It obviously contains scripting data, and it says it's a module for Access.. But, alas, I'm not all the familiar with MS Access, at any capacity.

Any pointers?

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #6  
Old August 29th, 2000, 11:44 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 12 m 27 sec
Reputation Power: 56
Open your Access Database, in the tabbed window that lets you choose Tables, Queries, Forms, etc... choose Modules. Click the New button on the right, paste in the code from the script, close, and you will be prompted to save the module. Once saved, just double-click on the module icon, and it will run the dump.

Reply With Quote
  #7  
Old August 29th, 2000, 02:47 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks for the feedback, I had figured it out. Not a real complicated process, but one might have thought that MS would have just created the program with the export for SQL files.

But that would have made just too much sense and meant that MS would have had to play nice with others.



------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #8  
Old August 30th, 2000, 05:13 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
had major problems with access but found the best way to convert a TABLE was to export as text .txt from MSAccess
open in wordpad remove the top line (the field names) strip the " quote marks.

then create the table in mysql
then run this
mysql> LOAD DATA INFILE "data.txt" INTO TABLE your_table;

Make sure you u to your database.

This is only good for tables hope its some help


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Coverting MS Access Database into 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 6 hosted by Hostway
Stay green...Green IT