MySql Database Help Please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • soldierdog
    Registered User
    • Jan 2004
    • 82

    #1

    MySql Database Help Please

    I have a backup of my database and I need to restore it to a new MySql DB on another server. All of the Tables are already created and I dont' want to dump and recreate the DB. I just want to populate the new DB with the old DB's info.

    Any help would greatly appreciated.



    When the tailgate drops, the bullshit stops
  • - Jesus Christ -
    Confirmed User
    • Mar 2003
    • 7197

    #2
    you got SSH access?

    Amen

    Comment

    • com
      Confirmed User
      • Aug 2003
      • 4541

      #3
      Originally posted by - Jesus Christ -
      you got SSH access?
      what he said

      Real. Professional. Hosting.
      .:Expect Nothing Less:.
      320-078-843 :: www.realprohosting.com :: [email protected]

      Comment

      • soldierdog
        Registered User
        • Jan 2004
        • 82

        #4
        Yes, ssh

        When the tailgate drops, the bullshit stops

        Comment

        • - Jesus Christ -
          Confirmed User
          • Mar 2003
          • 7197

          #5
          mysql -uUSERNAME -p dbname < /path/to/dump.sql



          this script will work too but the above command is easier

          http://www.ozerov.de/bigdump.php

          Amen

          Comment

          • soldierdog
            Registered User
            • Jan 2004
            • 82

            #6
            Yes but when I do that command it says the table has already been created which it has. I'm worried about breaking something in the software that connects to it and would prefer to just insert the data from the old backup.

            When the tailgate drops, the bullshit stops

            Comment

            • goBigtime
              Confirmed User
              • Nov 2002
              • 7761

              #7
              How did you backup the old database?

              Comment

              • - Jesus Christ -
                Confirmed User
                • Mar 2003
                • 7197

                #8
                Well I would just rename the database you have there now then recreate it. Becasue hte backup you have is always going to try to recreate the tables unless you go in with a txt editor and remove all the table creation statments.

                I highly doubt an unavialbe databse would "Break" any scripts.

                Amen

                Comment

                • soldierdog
                  Registered User
                  • Jan 2004
                  • 82

                  #9
                  I just dumped it. no special flags, maybe I'm just going to have to drop all the tables in the new DB and restore it.

                  When the tailgate drops, the bullshit stops

                  Comment

                  • soldierdog
                    Registered User
                    • Jan 2004
                    • 82

                    #10
                    Ok, thanks gusy. I'll backup this one restore the old one and see what happens. It should be fine.

                    Thanks for jumping in and helping me so quickly.

                    You guys are too cool.

                    When the tailgate drops, the bullshit stops

                    Comment

                    Working...