Copying Data from Access to MySQL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ramunune
    New Member
    • Sep 2014
    • 1

    #1

    Copying Data from Access to MySQL

    i want the procedure to export .mdb file to sql file move file to server using ftp and import into mysql database using a batch file
  • jimatqsi
    Moderator Top Contributor
    • Oct 2006
    • 1293

    #2
    ramunune,
    You can export the data directly to the host of the mysql database very simply. Just make an ODBC connection from Access to the mysql db (that is, make table links in Access) and write queries to move the data. Depending on what version of Access you are using, there might even be an export wizard to help with that part.

    You may, however, run into a lot of issues with individual fields. Is the mysql db designed to mirror the Access db? The devil is in the details and you haven't shared many details.

    Good luck,

    Jim

    Comment

    • zmbd
      Recognized Expert Moderator Expert
      • Mar 2012
      • 5501

      #3
      ramuneue:
      The MySQL user manual is quite user friendly.
      Please read chapter 6 and in particular 6.4 Using Connector/ODBC with Microsoft Access

      Your only other option is to export the data to a csv file and then call for the file from MYSQL.

      In anycase as J has pointed out there are data type issues that you should check for... a few of the MySQL types are not supported in MS Access.
      Avoid the Boolean field if possible or make sure that they are all set, there can be issues with null values.
      Last edited by zmbd; Sep 20 '14, 02:27 PM.

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32669

        #4
        Eminently deletable request for work.

        As there is some useful info in the replies, however, I'll just close it.

        Feel free to ask a proper question if you'd like some help.

        Comment

        Working...