how to export data from sql server and import to mysql automatically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neelsbr
    New Member
    • Jun 2010
    • 16

    #1

    how to export data from sql server and import to mysql automatically

    hi,

    i have export one table from sql server.and those data are import to mysql automatically.n o manual.it runs every time gap.

    please any one know how to do it..help i want to finish this work by this week

    Thanks in advance
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    You have a couple of options.

    Use mysqldump (and sql server equivalent of mysqldump) and put them in a crontab / scheduled-task.

    OR

    Do it with code. With php, connect to the first database, get the data, connect to mysql, insert the data.

    You can automate it by putting this php file in a crontab too.

    Take your pick, but I suggest you go with the former if your table is pushing hundreds thousands of rows or more.

    Cheers,


    Dan

    Comment

    • neelsbr
      New Member
      • Jun 2010
      • 16

      #3
      Originally posted by neelsbr
      hi,

      i have export one table from sql server.and those data are import to mysql automatically.n o manual.it runs every time gap.

      please any one know how to do it..help i want to finish this work by this week

      Thanks in advance
      thank u..i will try in my job..i will contact u further any reference..than k u for ur reply
      Last edited by Niheel; Jul 24 '10, 06:37 AM.

      Comment

      Working...