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

import Ms access data into MySql

14
hello everyone how can i import Ms Access data into MySql thank you
Feb 12 '08 #1
10 5128
mwasif
802 Expert 512MB
Checkout MySQL migration toolkit.
Feb 12 '08 #2
ronverdonk
4,258 Expert 4TB
I have the distinctive feeling that the MySQL migration kit for Access is not free of charge (but I could be wrong).

Another solution would be to do it yourself.
Write a server application (like PHP) that reads the tables and data from the Access database and stores it into the MySQL database.
Using a (free) tool like Adodb makes it relatively easy to do.

Holler when you need more info.

Ronald
Feb 13 '08 #3
hello everyone how can i import Ms Access data into MySql thank you
First export the tables from MS-Access into a text file and then use infile command to import that text file into MySQL.
Here is an example of infile command:

LOAD DATA INFILE ‘name_of_exported_file.txt’
INTO TABLE table_name
FIELDS TERMINATED BY ‘,’
LINES TERMINATED BY ‘\r\n’;
Feb 18 '08 #4
milas57
14
thank for all yr help guy really appreciate
Feb 18 '08 #5
ronverdonk
4,258 Expert 4TB
thank for all yr help guy really appreciate
That why we are here (one of our goals in life).
Do you want to tell us what solution you g=have chosen?

Ronald
Feb 18 '08 #6
docdiesel
297 Expert 100+
Hi,

how about copying the tables contents directly by INSERT INTO SELECT FROM..., without having to export/import them and so on?

Of course first you've got to create the tables in mySQL with phpMyAdmin or another mySQL tool. Then all you need is a Window$-PC with Access and the mySQL ODBC driver. Open the Access database and create a new table - but make it a linked table, using the OBDC entry of your mySQL database as source. Select the appropriate mySQL table. Then copy the data from within Acce$$ by using SQL:

Expand|Select|Wrap|Line Numbers
  1. INSERT INTO
  2.   mysql_connected_table1
  3. SELECT
  4.   *
  5. FROM
  6.   access_old_table ;
Regards,

Bernd
Feb 18 '08 #7
ronverdonk
4,258 Expert 4TB
Like MySQL, the MS Access db must have meta data about the tables you want to copy. So read the Access table's metadata, construct a MySQL CREATE TABLE command with that information and issue it.

Then copy (INSERT as in the previous post) and you're done.

Ronald
Feb 18 '08 #8
I have the distinctive feeling that the MySQL migration kit for Access is not free of charge (but I could be wrong).
...
Ronald
Actually, you are :P. Mysql Migration tools are released under the GPL and under commercial license by mysql for any OS.

More info:
http://dev.mysql.com/downloads/gui-tools/5.0.html

Hope it helps,

Pedro.
Mar 22 '08 #9
ronverdonk
4,258 Expert 4TB
Actually, you are :P. Mysql Migration tools are released under the GPL and under commercial license by mysql for any OS.

More info:
http://dev.mysql.com/downloads/gui-tools/5.0.html

Hope it helps,

Pedro.
Pedro, you are absolutely right about this. So it was entirely my mistake. Soory foir that.
Ronald
Mar 22 '08 #10
You can use MySQL import wizard in dbForge Studio for MySQL. This MySQL GUI tool has MS Access format as well.
May 30 '17 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Bruce A. Julseth | last post by:
Newbie Question: Is there a way to import MS Access into MySQL? Maybe create a CSV or something. If so, what would be the SQL to do this? Thanks... Bruce
6
by: NotGiven | last post by:
I have a db that I need to dump into a format that can be easily read my MS Access. I tried the dump with regular PHPAdmin. Then I used the dump to run a query in MS Access. Errors occurred...
7
by: jj | last post by:
It's taking forever to upload 400,000 records to the database through access/odbc, and I've tried phpMyAdmin's interface but it seems to timeout during import of a CSV file. Is there a better way...
8
by: Johnny | last post by:
I was looking for information on how to import an excel file or other text file into a MySql database. I have done this with both access and SQL Server and am looking for a way to do this in...
5
by: Kajol | last post by:
Hi All, can u plz tell me how to import data from mysql to another database. & how to export data from anotherdata base to mysql Thanx for ur Advice Regards Kajol
16
by: klowe | last post by:
Hi, I'm an Access newbie and need to update an Access database from a web application. I'll need to add new records and also update existing ones. What I was thinking of doing is have my web app...
4
by: nepifanio | last post by:
Hi Guys, I'm trying to import data out of MySQL db to MS Access 2003 using ImportXML. I don't have any problems doing the import, except for one table with a "text" field defined. I'm getting...
7
by: phillip.s.powell | last post by:
We're looking at a GUI interface for our MySQL DB and I am interested in MySQL Administrator, however, one of our requirements is to be able to import/export databases. Is this possible or do I...
0
by: NewbieSupreme | last post by:
I'm using PHPMyAdmin on an Apache2Triad install (latest version; 5.x.x, which installs PHP5 and PHPMyAdmin 2.8 as well). In Access, I exported a table to a text file, tab-delimited, text qualifyer...
7
by: Randy | last post by:
Folks: We have a web-based app that's _really_ slowing down because multiple clients are writing their own private data into a single, central database. I guess the previous programmer did...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.