School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,177 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,578 people online right now. Registration is fast and FREE... Join Now!




Windows Access to MySQL (Unix)

 

Windows Access to MySQL (Unix)

alien

30 Nov, 2007 - 10:56 AM
Post #1

New D.I.C Head
*

Joined: 20 Oct, 2007
Posts: 11


My Contributions
Hello,

Any tips on transferring a Windows Access DB to a Unix MySQL database?
I tried using MS Access to MySQL but I keep getting this error message for each table:

Error: -2147217900 (80040E14) [MySQL][ODBC 3.51 Driver][mysqld-6.0.3-alpha-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=BDB' at line 1
- 0 records moved

Here are the steps I took:

1) selected the filename of the Access DB I want to transfer. (no password or username)
2) Did a direct transfer with mysql options set at localhost, port 3306, username root, password xxxx, destination database: the DB I already created in MySQL, and then I tried every type of storage engine.
3) I transferred the indexes with default value properties and auto number properties.


Alien

This post has been edited by alien: 30 Nov, 2007 - 11:13 AM

User is offlineProfile CardPM
+Quote Post

 
Reply to this topicStart new topic
Replies(1 - 8)

skyhawk133

RE: Windows Access To MySQL (Unix)

30 Nov, 2007 - 11:11 AM
Post #2

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 16,883



Thanked: 156 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
On this page there is some information. Here's a quote:

QUOTE
Migration Tools

There are a wide variety of tools available to help you migrate a SQL Server or Access database to MySQL. We'll look at several different tools so you can choose the one that best suits your needs. The tools we will look at will include the following:

* MSSQL2MYSQL
* Microsoft DTS
* SQLyog
* Access Export
* Text Import/Export

SQLYog and the Microsoft DTS wizard offer graphical interfaces that can be used with both MSSQL and Microsoft Access to import tables into MySQL. MSSQL2MYSQL is a script by Michael Kofler that can convert not only the table structure and data, but converts the index information as well. If you use Microsoft Access you may not have access to the above tools, but you can use the data export features of Access.

User is online!Profile CardPM
+Quote Post

alien

RE: Windows Access To MySQL (Unix)

30 Nov, 2007 - 11:19 AM
Post #3

New D.I.C Head
*

Joined: 20 Oct, 2007
Posts: 11


My Contributions
QUOTE(skyhawk133 @ 30 Nov, 2007 - 12:11 PM) *

On this page there is some information. Here's a quote:

QUOTE
Migration Tools

There are a wide variety of tools available to help you migrate a SQL Server or Access database to MySQL. We'll look at several different tools so you can choose the one that best suits your needs. The tools we will look at will include the following:

* MSSQL2MYSQL
* Microsoft DTS
* SQLyog
* Access Export
* Text Import/Export

SQLYog and the Microsoft DTS wizard offer graphical interfaces that can be used with both MSSQL and Microsoft Access to import tables into MySQL. MSSQL2MYSQL is a script by Michael Kofler that can convert not only the table structure and data, but converts the index information as well. If you use Microsoft Access you may not have access to the above tools, but you can use the data export features of Access.



Thanks skyhawk. You replied while I was editing my original post. I will give some of these tools a try. As I mentioned, I was tryiing Access to MySQL but not having much luck.
I have already tried a few other approaches. I tried doing it through the windows command line. I would use an access export and/or a text export but it seems you have to do it table by table. There are about 15 tables so I hoped there was a faster away.
I tried the ODBC technique as well but this did not work either.
However with your tips maybe I can get this working.

Thanks,
A.

This post has been edited by alien: 30 Nov, 2007 - 11:20 AM
User is offlineProfile CardPM
+Quote Post

skyhawk133

RE: Windows Access To MySQL (Unix)

30 Nov, 2007 - 11:25 AM
Post #4

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 16,883



Thanked: 156 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
The other thing you might do if there are no easy tools for Access is download MSDE (MSSQL Developer Edition) and import in to it from Access, then from MSDE out to MySQL.


User is online!Profile CardPM
+Quote Post

alien

RE: Windows Access To MySQL (Unix)

30 Nov, 2007 - 11:39 AM
Post #5

New D.I.C Head
*

Joined: 20 Oct, 2007
Posts: 11


My Contributions
QUOTE(skyhawk133 @ 30 Nov, 2007 - 12:25 PM) *

The other thing you might do if there are no easy tools for Access is download MSDE (MSSQL Developer Edition) and import in to it from Access, then from MSDE out to MySQL.


Will SQL Server 2005 Express perform the same function as MSSQL Developer Edition?

A
User is offlineProfile CardPM
+Quote Post

alien

RE: Windows Access To MySQL (Unix)

12 Dec, 2007 - 08:24 PM
Post #6

New D.I.C Head
*

Joined: 20 Oct, 2007
Posts: 11


My Contributions
QUOTE(skyhawk133 @ 30 Nov, 2007 - 12:25 PM) *

The other thing you might do if there are no easy tools for Access is download MSDE (MSSQL Developer Edition) and import in to it from Access, then from MSDE out to MySQL.

I found the simplest way to transfer an Access DB over to the MySQL format. Simply download a program called 'Access to MySQL'. It is freeware.
Then use the wizard. Unfortunately, this wizard was not too magical because it just would not transfer the Access DB into mySQL. BUT the error message conveniently listed the commands it was trying to enter into MySQL in order to create the DB. So it was simply a matter of copying the list, removing extraneous messages, and then pasting it into MySQL.

If anyone else is having this problem my solution is the easiest one you can find I think. Although it is a bit slapshod, it works.

Thanks though for all your tips Skyhawk.

A.
User is offlineProfile CardPM
+Quote Post

dataferret

RE: Windows Access To MySQL (Unix)

13 Dec, 2007 - 06:50 AM
Post #7

New D.I.C Head
*

Joined: 13 Dec, 2007
Posts: 5


My Contributions
The simplest and most convenient way to transfer Access/Excel data into an online mysql format is to use a program called Navicat. It is not free unfortunately but it is invaluable and makes data transfer easy and quick. It also has useful facilites for querying and working on the remote database and individual tables. I think there is a 30 day free trial too: _navicat.com/
User is offlineProfile CardPM
+Quote Post

alien

RE: Windows Access To MySQL (Unix)

13 Dec, 2007 - 05:13 PM
Post #8

New D.I.C Head
*

Joined: 20 Oct, 2007
Posts: 11


My Contributions
QUOTE(dataferret @ 13 Dec, 2007 - 07:50 AM) *

The simplest and most convenient way to transfer Access/Excel data into an online mysql format is to use a program called Navicat. It is not free unfortunately but it is invaluable and makes data transfer easy and quick. It also has useful facilites for querying and working on the remote database and individual tables. I think there is a 30 day free trial too: _navicat.com/

Thanks for the suggestion. I looked at that program but opted out since it is not free. I figured for this basic task I did not need it, but in future I may look into it as my DB projects become more complex.
Speaking of querying and working on remote DBs, I know how to create a MySQL DB from scratch, and run various queries with it, but the class I took never covered remote administration, enabling various users access to the DB or even specific problems like creating non-text based password fields with unique encryption algorithms to use with PHP (for example).
Right now I notice the end-user password field in my DB is in a VARCHAR (20) format but the web designer I'm working with needs it to be in a 32 bit binary password format. I did some research and found that his needs can be accomadated with the MD5 algorithm but I'm not quite sure how to implement it. Have you done this before?

Regards,

A.
User is offlineProfile CardPM
+Quote Post

dataferret

RE: Windows Access To MySQL (Unix)

18 Dec, 2007 - 04:24 PM
Post #9

New D.I.C Head
*

Joined: 13 Dec, 2007
Posts: 5


My Contributions
QUOTE(alien @ 13 Dec, 2007 - 06:13 PM) *

... enabling various users access to the DB or even specific problems like creating non-text based password fields with unique encryption algorithms to use with PHP (for example).
Right now I notice the end-user password field in my DB is in a VARCHAR (20) format but the web designer I'm working with needs it to be in a 32 bit binary password format. I did some research and found that his needs can be accomadated with the MD5 algorithm but I'm not quite sure how to implement it. Have you done this before?



You need to have a user input form which receives the password, then encrypts it and submits it into the database. You also need to have a decryption algorithm which retrieves and decrypts the password then displays it in a browser (or runs some other function once it has been validated).

You can find more about MD5 and php here: _http://uk2.php.net/md5
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 07:35PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month