473,394 Members | 1,761 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,394 software developers and data experts.

Know any good scripts to convert msaccess to mysql

Hello,

I am tasked with converting an MsAccess db to a MySQL 4 db in a Linux
environment. Can anyone recommend any good freeware/scripts to help me
do this?

Thanks, - Dave

Jan 31 '06 #1
9 2276
la***********@zipmail.com wrote:

I am tasked with converting an MsAccess db to a MySQL 4 db in a Linux
environment. Can anyone recommend any good freeware/scripts to help me
do this?


Googling for "access export sql" resulted in a MySQL hit first thing.

The conversion is rarely perfect. Be prepared for some manual
intervention. Standard practices in Access don't always line up with
standard practices in MySQL. In particular, you will want to think very
hard about any special characters in your table and field names. It's
common to use spaces and dashes in Access field names, and it is possible
to use them in MySQL, but it's inconvenient.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Feb 1 '06 #2
Thanks but nothing I've been able to find is hosted on a Unix/Linux
environment. What tool / script did you use? - Dave

Feb 2 '06 #3
la***********@zipmail.com wrote:

Thanks but nothing I've been able to find is hosted on a Unix/Linux
environment. What tool / script did you use? - Dave


I doubt you will find anything hosted on Linux. It is not trivial to
manipulate an Access database outside of Windows.

I used Windows.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Feb 3 '06 #4
"Tim Roberts" <ti**@probo.com> posted:
I doubt you will find anything hosted on Linux. It is not trivial to
manipulate an Access database outside of Windows.


What about putting the access file onto a Windows machine, then
exporting the data to XML, CSV or whatnot? Once placed in the
new format, the data can be moved back to the linux machine
and "accessed" without Access.

Or, could the file be placed upon a Unix machine, then connected to
via a network connection (network share) from a Windows machine?

Jim Carlock
Post replies to the newsgroup.
Feb 3 '06 #5
"Jim Carlock" <an*******@127.0.0.1> wrote:
"Tim Roberts" <ti**@probo.com> posted:
I doubt you will find anything hosted on Linux. It is not trivial to
manipulate an Access database outside of Windows.
What about putting the access file onto a Windows machine, then
exporting the data to XML, CSV or whatnot? Once placed in the
new format, the data can be moved back to the linux machine
and "accessed" without Access.


Absolutely, but as I recall, that is exactly the problem you were trying to
solve in the first place!
Or, could the file be placed upon a Unix machine, then connected to
via a network connection (network share) from a Windows machine?


Do you mean something like Samba? That will work, but there are two
issues. First, Access is not very smart about the way it reads the
database file, and most Access programmers are even worse. Talking to an
Access database over a network share can be a painful exercise in patience.
Second, this doesn't really solve the problem. You're still running the
Access application on Windows, and the original problem specification was
to eliminate that.

<soapbox>
Access is a flexible, powerful, and easy to use program, but in my view,
one of the most serious shortcomings in all 11 versions of Access has been
the complete lack of a simple "export to SQL" command.
</soapbox>

When I take a backup of a database, I would much rather have a file that I
can read (and manipulate) than a copy of an opaque binary file. Having an
export/import option would eliminate the need for the "repair database"
option in Access.

By the way, here are a couple of web pages that describe how to move from
Access and SQL Server to MySQL:

http://dev.mysql.com/tech-resources/...microsoft.html
http://www.kitebird.com/articles/access-migrate.html
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Feb 5 '06 #6
I thought MySQL had the MySQL Migration Toolkit for free.

<la***********@zipmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hello,

I am tasked with converting an MsAccess db to a MySQL 4 db in a Linux
environment. Can anyone recommend any good freeware/scripts to help me
do this?

Thanks, - Dave

Feb 10 '06 #7
The Migration toolkit is quick to convert and really slick at data mapping
and the like. It will tell you in detail about errors and let you fix the
SQL, but I never had any. it was a straight shoot and it took maybe 5-10
minutes of clicking mostly "next" and checking for errors. The previous
version recreated a lot of the MS hidden System tables. the new one doesn't.
It also converts other databases like Oracle. DB2 is in the works. So it's
not a toy tool.
It generates one SQL script for your data and one for your schema if I
remember right.

http://dev.mysql.com/downloads/migra...olkit/1.0.html

and yes, it runs on Linux. And like I said - it's free.

"Jim Michaels" <jm******@nospam.yahoo.com> wrote in message
news:qP******************************@comcast.com. ..
I thought MySQL had the MySQL Migration Toolkit for free.

<la***********@zipmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hello,

I am tasked with converting an MsAccess db to a MySQL 4 db in a Linux
environment. Can anyone recommend any good freeware/scripts to help me
do this?

Thanks, - Dave


Feb 10 '06 #8

"Jim Carlock" <an*******@127.0.0.1> wrote:
Or, could the file be placed upon a Unix machine, then connected to
via a network connection (network share) from a Windows machine?
"Tim Roberts" <ti**@probo.com> replied: Do you mean something like Samba? That will work, but there are
two issues. First, Access is not very smart about the way it reads
the database file, and most Access programmers are even worse.
Well, I'm thinking along the lines of Access connecting to Access,
and Access connecting to other. I'm lacking in experience in
connecting from other to Access. There are two ways I can think
of whereby Access can connect to other...

(1) The database being connected to is recognized,
(2) The database is unrecognized, in which case some sort of
ODBC or SQL serving connection must be used. So a third
party connector existed and Access hooked up to it okay. I
was thinking about going in the reverse direction though,
whereby perhaps some third party tool already exists that
can connect to an Access data file and thereby send Access
SQL statements to it.
Talking to an Access database over a network share can be a
painful exercise in patience.
Well, perhaps, but only if you insist. :-) The ADO methods seem
alot slower than the DAO methods. I won't say that I'm familiar
with accessing Access in anything but a Microsoft environment
though.
<soapbox>
Access is a flexible, powerful, and easy to use program, but
in my view, one of the most serious shortcomings in all 11
versions of Access has been the complete lack of a simple
"export to SQL" command.
</soapbox>
Access provides a visual way to create queries. Right clicking inside
the query created then offers a drop down menu whereby you can
select SQL View to get the "Access SQL" version of the query. I've
used this in the past to pop an SQL query into a external application,
use links to external data on "other servers" to create tables inside
Access. Of course every dialect of SQL differs somewhat.

Furthermore, SQL is just a scripting language for collecting a group
of data. The presentation of the data gets handled outside of SQL.
SQL doesn't provide the file format, it's just a scripting language,
and when dealing with databases, I tend to think along the lines of
recordsets and queries and SQL provides the syntax for acquiring
the recordset (or creating or editing a recordset).
When I take a backup of a database, I would much rather have a
file that I can read (and manipulate) than a copy of an opaque binary
file.
Okay, I think I see what you're saying, that going along the lines
of ISAM files. An Access "link" provides a way to connect to external
data file types. Once "linked", the normal gambit of "SQL" operations
could commence. Microsoft provides some limited ways to "link" to
some well know data types (ie, text files/csv, txt, asc, tab, Access
mdb/mde/mda, dbase III/dbf, dbase V/dbf, dbase IV/dbf, paradox/db,
html/htm, and a couple Microsoft types/Outlook+Exchange).

A third party ODBC connection might be of use.
By the way, here are a couple of web pages that describe how
to move from Access and SQL Server to MySQL:

http://dev.mysql.com/tech-resources/...microsoft.html
http://www.kitebird.com/articles/access-migrate.html


Thanks for the links, Tim. I think my original thoughts fell along
the lines of linking to an Access .mdb and then extracting the
data from such. I lack experience in moving data out of Access
to another format though. I kind of hoped that there was an
easy way to connect to an Access .mdb and still am not sure
that an easy way exists from a non-Microsoft client. IIS and
other scripting languages provides ways to easily extract data
from an Access .mdb and present it in an XML format...

Just throwing some thoughts out.

Jim Carlock
Post replies to the group.
Feb 11 '06 #9

I've had perfect conversions with the MySQL Migration Toolkit (not tried it
with odd features of Access), available from the MySQL web site.
http://www.mysql.com/products/tools/migration-toolkit/ info
http://dev.mysql.com/downloads/migra...olkit/1.0.html download

if you get any errors along the conversion, you can view the error detail &
edit the SQL and fix things. 10 minute process. not a toy tool. also
migrates Oracle and some others.
Can work directly from the database file - no need for odbc, unless you want
to. Generates a schema script and a data script.
had a database that used system tables. the toolkit decided to include the
needed system tables.

"Tim Roberts" <ti**@probo.com> wrote in message
news:cm********************************@4ax.com...
la***********@zipmail.com wrote:

I am tasked with converting an MsAccess db to a MySQL 4 db in a Linux
environment. Can anyone recommend any good freeware/scripts to help me
do this?


Googling for "access export sql" resulted in a MySQL hit first thing.

The conversion is rarely perfect. Be prepared for some manual
intervention. Standard practices in Access don't always line up with
standard practices in MySQL. In particular, you will want to think very
hard about any special characters in your table and field names. It's
common to use spaces and dashes in Access field names, and it is possible
to use them in MySQL, but it's inconvenient.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.

Feb 11 '06 #10

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

Similar topics

0
by: Gilbert Wu | last post by:
Hi, I've set up a ODBC DSN to connect to Mysql. This DSN works fine with MS = Excel. However, it returned the following error when I tried to link = some Mysql tables from Access 2000: ...
0
by: Enrique Sanchez Vela | last post by:
Hi, Would anyone explain me why the startup scripts check for command line arguments and the contents of /etc/my.cnf right after setting the env variables such as basedir, pid-file and so? ...
25
by: cory | last post by:
Hi, I have an Access database and am having an ASP.NEt application written for it. It is almost complete. I have a hosting company that I signed up with a month ago but before I did anything I...
1
by: Coney Coxwell | last post by:
Hopefully, someone will take the time to answer this. I have MYSQL back-end data source that I would like to link MSAccess to. My goal is to use Access to query specific pieces of information from...
150
by: tony | last post by:
If you have any PHP scripts which will not work in the current releases due to breaks in backwards compatibility then take a look at http://www.tonymarston.net/php-mysql/bc-is-everything.html and...
54
by: sam.s.kong | last post by:
Hi! I've been programming ASP for 5 years and am now learning PHP. In ASP, you can use GetRows function which returns 2 by 2 array of Recordset. Actually, it's a recommended way in ASP when you...
1
by: Karuna | last post by:
Hi, I am new to MySQL. I want to create a script file which will include a number of commands and execute it, just like we do in Oracle. Can any one tell me how to do it? Suppose I want to create...
0
by: nitintiwari | last post by:
can some one help me with the above topic i want a code in vb6 to convert an excel file to be converted to msaccess file and copy the same file to my data base file
0
by: krishnasarma | last post by:
Migrating from MSAccess to SQL server especially MYSQL ... wii it be a tedious one? Do i need to start /rewrite all the code from begining or can i resume from where i left on MSAccess..... thanx
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.