473,321 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Importing MS Access into MySQL on Mac?

Is there a way to import an MS Access database .mdb file into MySQL
running locally on a Mac?

Thanks in advance to all for any info.
Aug 3 '07 #1
5 5247
On Aug 3, 11:04 am, Vik Rubenfeld <v...@mindspring.com.invalidwrote:
Is there a way to import an MS Access database .mdb file into MySQL
running locally on a Mac?

Thanks in advance to all for any info.
This really isn't a PHP question, nor is it really a Mac-specific
problem. I will answer the question anyway, since I'm getting wings
for lunch and am therefore happy.

In my experience, the easiest way to import data from db to db is a to
dump the data in a delimited format and import into the new database.

http://dev.mysql.com/doc/refman/4.1/en/mysqlimport.html

There are articles out there about how to do it directly from Access
to MySQL...
http://www.google.com/search?source=...ql+import+data

But, like I said, I personally like dump and pull since I work on so
many different DB types.

Aug 3 '07 #2
In article <11**********************@x40g2000prg.googlegroups .com>,
ELINTPimp <sm*****@gmail.comwrote:
[...]
But, like I said, I personally like dump and pull since I work on so
many different DB types.
I hear you. After much googling and research, that is the approach I'm
taking. The reason I would like a more automated approach is that I'm
importing a database with 10 tables and many fields per table, and I
don't want any errors in terms of the field type, length, etc.

Every program I've found that directly imports MS Access to MySQL, runs
on Windows. Navicat runs on Mac, but the Mac version doesn't import MS
Access files.

If anyone's seen a Mac program that does this, please post a link to it.
Aug 3 '07 #3
Vik Rubenfeld wrote:
In article <11**********************@x40g2000prg.googlegroups .com>,
ELINTPimp <sm*****@gmail.comwrote:
>[...]
But, like I said, I personally like dump and pull since I work on so
many different DB types.

I hear you. After much googling and research, that is the approach I'm
taking. The reason I would like a more automated approach is that I'm
importing a database with 10 tables and many fields per table, and I
don't want any errors in terms of the field type, length, etc.

Every program I've found that directly imports MS Access to MySQL, runs
on Windows. Navicat runs on Mac, but the Mac version doesn't import MS
Access files.

If anyone's seen a Mac program that does this, please post a link to it.
You'll get a much better answer in a MySQL newsgroup, such as
comp.databases.mysql.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 3 '07 #4
Michael Vilain wrote:
In article
<vi************************@earthlink.vsrv-sjc.supernews.net>,
Vik Rubenfeld <vi**@mindspring.com.invalidwrote:
>In article <11**********************@x40g2000prg.googlegroups .com>,
ELINTPimp <sm*****@gmail.comwrote:
>>[...]
But, like I said, I personally like dump and pull since I work on so
many different DB types.
I hear you. After much googling and research, that is the approach I'm
taking. The reason I would like a more automated approach is that I'm
importing a database with 10 tables and many fields per table, and I
don't want any errors in terms of the field type, length, etc.

Every program I've found that directly imports MS Access to MySQL, runs
on Windows. Navicat runs on Mac, but the Mac version doesn't import MS
Access files.

If anyone's seen a Mac program that does this, please post a link to it.

AFAIK, there is no such program since Access is a Windows-only
application. And the format is proprietary to Microsoft, so there's no
perl or other modules that can decode an Access database directly. Your
only option at this point is to automate dumping to a CSV file and write
a decoding script in perl or php to read such a file and load it into
MySQL. There's nothing on the Macintosh that can read it (same goes for
Publisher files).

So, it's time to go back to that drawing board...
Not at all - as he could find in a MySQL newsgroup...

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 4 '07 #5
Vik Rubenfeld wrote:
Every program I've found that directly imports MS Access to MySQL, runs
on Windows. Navicat runs on Mac, but the Mac version doesn't import MS
Access files.
You'll probably get best results using Windows for this task. Obviously,
once it's on the MySQL server you can get at the data from any operating
system.

If you don't have a Windows system, you could try using OpenOffice.org
Base. OpenOffice.org (OOo) is a cross-platform office suite, and Base is
its database component. It is able to open Microsoft Access files, and
export them as comma-delimited or tab-delimited data files, which should
be fairly easy for you to import into MySQL.

An alternative, though more complicated to set up, probably easier in the
long run if you plan on transferring the data on a frequent basis, would
be to hook up OOo Base directly to the MySQL database using ODBC and write
a series of OOo BASIC scripts to run the data transfer automatically --
exactly how to do that is way beyond the scope of this newsground, but you
should be able to get support on the OOo web forums and mailing lists.

Unless they've changed their policies, OOo only officially supports
Windows, Linux and Solaris, but I frequently use it on my Mac (OS 10.3)
and it's perfectly functional. There's also a spin-off called NeoOffice
which integrates a bit better with Mac OS, though I find it a little
slower.

Hope that helps.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 44 days, 15:58.]

Command Line Interfaces, Again
http://tobyinkster.co.uk/blog/2007/0...nd-line-again/
Aug 4 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andreas Emmert | last post by:
Hi there, I'm trying to import a csv file into my MySQL database. Unfortunately the number format for the price column is formatted in German style, i.e. XX,XX (decimals separated by comma not...
4
by: Oleg | last post by:
Hi, Not really a PHP specific question, but I am using PHP on Linux box so it's kinda relevant. I'm developing a site which will periodically update inventory via a large batch file. I'm...
0
by: Robert Morgan | last post by:
------=_NextPart_000_0009_01C3535E.C763E5F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm doing a project for a local hospital, they want to...
0
by: Campbell's List | last post by:
Hi, I'm completely new to MySql and need help importing tables from Access or Dbase. I am using Dreamweaver MX to create a data-driven web site. With the VPS hosting plan we're on, our remote...
2
by: steve | last post by:
Hi, I have researched but have not found a good solution to this problem. I am importing large amounts of data (over 50 Meg) into a new mysql db that I set up. I use >mysql dbname <...
1
by: steve | last post by:
Hi, I have a 80 meg dump file created with mysqldump. I need to import it into a mysql db on Windows. On linux, I say "shell>mysql dbname < dumpfilename" But that does not work on Windows. ...
11
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for...
0
by: someone92 | last post by:
Hi, I'm building a shell script that store information in a MySQL 5.0 database. One of the data I store in the table is a text file. I use a BLOB type for this text data. If I try to import it...
1
by: penny111 | last post by:
Hi there, I've migrated a database named "crime" from an MS Access database to MySQL 5.0.37 using the MySQL Migration Toolkit 1.1.11. What i want to do is to copy the database folder from ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.