export - import MySql dbase ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PantieZ
    Confirmed User
    • Jan 2001
    • 1441

    #1

    export - import MySql dbase ?

    how can i do this ?

  • Babaganoosh
    ♥♥♥ Likes Hugs ♥♥♥
    • Nov 2001
    • 15841

    #2
    mysqldump

    Google it, it's easy.
    I like pie.

    Comment

    • Varius
      Confirmed User
      • Jun 2004
      • 6890

      #3
      Originally posted by PantieZ
      how can i do this ?

      Easiest method is to use mysqldump to export it. Then you can sue that file for import....example:

      mysqldump -h -u -p (put your values) db_name > file.sql

      mysql -h -u -p db_name < file.sql
      Skype variuscr - Email varius AT gmail

      Comment

      • SinSational
        Confirmed User
        • Oct 2004
        • 1723

        #4
        how many records?
        if is is small, you can just do a dump with phpMyAdmin.

        if big then easy way is just to make a php page that writes to a text file and then you can insert from that text in to the new table.

        backup/restore php page.

        ICQ# 273099174 - monthly specials - 2 Month Free Credit on All Plans - 100% Referrals - chris@ for details
        Virtual from $14.95/month, Dedicated from $149.95/month
        Dual-Core Xeon > 1000GB @ $149.95 | 1500GB @ $169.95 | 10Mbps @ $269.95

        Comment

        • Babaganoosh
          ♥♥♥ Likes Hugs ♥♥♥
          • Nov 2001
          • 15841

          #5
          Originally posted by SinSational
          how many records?
          if is is small, you can just do a dump with phpMyAdmin.

          if big then easy way is just to make a php page that writes to a text file and then you can insert from that text in to the new table.

          backup/restore php page.
          That's a lot of unnecessary work. mysqldump is the correct way to do it.
          I like pie.

          Comment

          • PantieZ
            Confirmed User
            • Jan 2001
            • 1441

            #6
            Originally posted by Armed & Hammered
            That's a lot of unnecessary work. mysqldump is the correct way to do it.
            thanks a lot !!

            Comment

            Working...