Open source tool for converting Microsoft Access (MDB) to MySQL

This is a discussion on Open source tool for converting Microsoft Access (MDB) to MySQL within the MySQL Database forums, part of the Database Forums category; Hello all, I've a large MDB file created by a bespoke application. I'd like to run a cron ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-16-2007
Simon Dobson
 
Posts: n/a
Default Open source tool for converting Microsoft Access (MDB) to MySQL

Hello all,

I've a large MDB file created by a bespoke application. I'd like to run
a cron job to pull the data from this and put it in a MySQL database
through the night.

Are there any open source tools that'll achieve this or get me close?
Reply With Quote
  #2 (permalink)  
Old 03-16-2007
Simon Dobson
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Michael Vilain wrote:
>>
>> I've a large MDB file created by a bespoke application. I'd like to run
>> a cron job to pull the data from this and put it in a MySQL database
>> through the night.
>>
>> Are there any open source tools that'll achieve this or get me close?

>
> Off the top of my head, you could install perl and ODBC drivers for
> Access. Will Access run on anything other than a Windows box? If so,
> how were you going to "run a cron job" on a Windows box to pull the data
> out of Access?


It was planned to FTP the file to the Linux server at 1am. I wanted cron
to run shortly after to get the data out of that.

> I'm sure there are open source job scheduling tools, maybe even a crond
> that runs on XP.


There's scheduled tasks (AT) for that :-)

> Just curious as you seem to be mixing environments.
> In any case, there is a perl that runs on XP. You may also need a
> compiler and development environment to build the database components,
> however.


The best solution for us would be getting the MDB file onto the Linux
box then having Linux put the data into MySQL tables. The servers aren't
on the same LAN so opening the ODBC can of worms is something I'd want
to avoid if at all possible.
Reply With Quote
  #3 (permalink)  
Old 03-16-2007
Simon Dobson
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Jerry Stuckle wrote:
>>
>> The best solution for us would be getting the MDB file onto the Linux
>> box then having Linux put the data into MySQL tables. The servers
>> aren't on the same LAN so opening the ODBC can of worms is something
>> I'd want to avoid if at all possible.

>
> The question remains - can you run your access database on Linux? AFAIK
> you can't. You can get to it with ODBC from a Linux box, but the
> database itself must run on a Windows box.


Maybe my original post is misleading. I said I wanted to 'pull' the data
from the Microsoft database, which suggests the MDB database being
online and 'live'. I don't want to 'run' the access database, I just
want to get the data out of it.

My question is simply this.

I have an MDB file on a Linux box. Do open-source tools exist to read
the data from this and put it into a MySQL database?
Reply With Quote
  #4 (permalink)  
Old 03-16-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Simon Dobson wrote:
> Michael Vilain wrote:
>>>
>>> I've a large MDB file created by a bespoke application. I'd like to
>>> run a cron job to pull the data from this and put it in a MySQL
>>> database through the night.
>>>
>>> Are there any open source tools that'll achieve this or get me close?

>>
>> Off the top of my head, you could install perl and ODBC drivers for
>> Access. Will Access run on anything other than a Windows box? If so,
>> how were you going to "run a cron job" on a Windows box to pull the
>> data out of Access?

>
> It was planned to FTP the file to the Linux server at 1am. I wanted cron
> to run shortly after to get the data out of that.
>
>> I'm sure there are open source job scheduling tools, maybe even a
>> crond that runs on XP.

>
> There's scheduled tasks (AT) for that :-)
>
>> Just curious as you seem to be mixing environments. In any case,
>> there is a perl that runs on XP. You may also need a compiler and
>> development environment to build the database components, however.

>
> The best solution for us would be getting the MDB file onto the Linux
> box then having Linux put the data into MySQL tables. The servers aren't
> on the same LAN so opening the ODBC can of worms is something I'd want
> to avoid if at all possible.


The question remains - can you run your access database on Linux? AFAIK
you can't. You can get to it with ODBC from a Linux box, but the
database itself must run on a Windows box.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #5 (permalink)  
Old 03-16-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Simon Dobson wrote:
> Jerry Stuckle wrote:
>>>
>>> The best solution for us would be getting the MDB file onto the Linux
>>> box then having Linux put the data into MySQL tables. The servers
>>> aren't on the same LAN so opening the ODBC can of worms is something
>>> I'd want to avoid if at all possible.

>>
>> The question remains - can you run your access database on Linux?
>> AFAIK you can't. You can get to it with ODBC from a Linux box, but
>> the database itself must run on a Windows box.

>
> Maybe my original post is misleading. I said I wanted to 'pull' the data
> from the Microsoft database, which suggests the MDB database being
> online and 'live'. I don't want to 'run' the access database, I just
> want to get the data out of it.
>
> My question is simply this.
>
> I have an MDB file on a Linux box. Do open-source tools exist to read
> the data from this and put it into a MySQL database?


That's the point. NO!

You need the MS JET engine to access a .mdb file. And that only runs on
Windows. I don't know of anything which allows you to get the data when
the .mdb file is on a Unix system.

Have them export the data and import it into MySQL.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #6 (permalink)  
Old 03-16-2007
Simon Dobson
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Jerry Stuckle wrote:
>
> That's the point. NO!
>
> You need the MS JET engine to access a .mdb file. And that only runs on
> Windows. I don't know of anything which allows you to get the data when
> the .mdb file is on a Unix system.
>
> Have them export the data and import it into MySQL.


Okay, shame, I'll look into doing the conversion before it arrives at
the Linux box.
Reply With Quote
  #7 (permalink)  
Old 03-16-2007
AlterEgo
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Simon,

Via ODBC, you can create "linked tables" in Access that point to tables in
your MySql database. With some exceptions, the linked tables act as though
the tables were native Access tables. You can move the data via SQL commands
within the Access application by setting up a query for each table:

insert MyLinkedTable ...
select ....
from MyAccessTable

If you have to account for duplicate records, etc. the MyLinkedTable table
could be a staging table in MySQL.

By updating directly from Access, you can eliminate the export and import
files. Its pretty straight forward.

-- Bill

"Simon Dobson" <replytogroup@nospam.domain.invalid> wrote in message
news:55vj2eF26fcu2U1@mid.individual.net...
> Jerry Stuckle wrote:
>>
>> That's the point. NO!
>>
>> You need the MS JET engine to access a .mdb file. And that only runs on
>> Windows. I don't know of anything which allows you to get the data when
>> the .mdb file is on a Unix system.
>>
>> Have them export the data and import it into MySQL.

>
> Okay, shame, I'll look into doing the conversion before it arrives at the
> Linux box.



Reply With Quote
  #8 (permalink)  
Old 03-17-2007
Malcolm Dew-Jones
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Simon Dobson (replytogroup@nospam.domain.invalid) wrote:
: Hello all,

: I've a large MDB file created by a bespoke application. I'd like to run
: a cron job to pull the data from this and put it in a MySQL database
: through the night.

: Are there any open source tools that'll achieve this or get me close?


google speaks, it tells me to try

http://sourceforge.net/projects/mdbtools

never used it myself.

Reply With Quote
  #9 (permalink)  
Old 03-17-2007
Simon Dobson
 
Posts: n/a
Default Re: Open source tool for converting Microsoft Access (MDB) to MySQL

Malcolm Dew-Jones wrote:
> Simon Dobson (replytogroup@nospam.domain.invalid) wrote:
> : Hello all,
>
> : I've a large MDB file created by a bespoke application. I'd like to run
> : a cron job to pull the data from this and put it in a MySQL database
> : through the night.
>
> : Are there any open source tools that'll achieve this or get me close?
>
>
> google speaks, it tells me to try
>
> http://sourceforge.net/projects/mdbtools


Hi Malcolm,

Had a quick peek at that and it looks very interesting. Don't know about
a 0.6 release from 1994 but it could be just the thing.

Thanks for the pointer, I'll investigate that more tomorrow when it's
not 1am!

S.
Reply With Quote
Reply


Thread Tools
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

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



All times are GMT +1. The time now is 07:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0