I am working on a Java project that sources data from an MS Access database, but I want to use MySQL because I have found it to be very easy to manage. How can I export an Access database that has tables of 8 MB and more, and move the data to MySQL?
-
To expand on @Dekel's answer, there's a video of the process here.Vérace– Vérace2015年07月09日 15:40:34 +00:00Commented Jul 9, 2015 at 15:40
2 Answers 2
You can use ODBC to connect from MSAccess to MySQL.
Here is an example.
What you should actually do is:
- Configure a new ODBC DNS connection (this might help)
- Inside access - click on the table you would like to export, click on the
file
menu, then go toexport
and choose the name for the export - Select the ODBC connection you just created from the list of files of type.
MSAccess will connect to your MySQL server and export the data in that table to your MySQL database.
-
Just a head's up about DBA.SE. Link only answers are normally frowned upon (link rot). Maybe you could expand on this answer - provide the steps? Also, please use the formatting tools provided - in this case the link tool allowing one to embed the link in a relevant word (Edited).Vérace– Vérace2015年07月09日 15:43:53 +00:00Commented Jul 9, 2015 at 15:43
-
@Vérace, thanks for that. As for the steps - they are very easy to produce based on the link, so I thought it will not make sense to just copy what's written there.Dekel– Dekel2015年07月09日 16:08:08 +00:00Commented Jul 9, 2015 at 16:08
-
Well, just a summary should do - it's just as I said though, link rot does occur.Vérace– Vérace2015年07月09日 16:09:47 +00:00Commented Jul 9, 2015 at 16:09
-
Ok, made some changes. I think now it's better :)Dekel– Dekel2015年07月09日 16:25:42 +00:00Commented Jul 9, 2015 at 16:25
The best way to do that is:
- Export Access data to xml
- Go to phpmyadmin Import that xml file.
Note: if the xml file size is bigger than max upload size import through command line / bash or Terminal
-
Can i have this xml file in general format for learning purpose.?muneeb_ahmed– muneeb_ahmed2018年02月16日 12:43:33 +00:00Commented Feb 16, 2018 at 12:43