1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need some advice/help with transferring a MySQL Db

Discussion in 'Site & Server Administration' started by kentuckyslone, May 24, 2007.

  1. #1
    Hey

    I am transferring a site to a new server and cannot seem to figure out how to transfer the MySQL Db

    Can someone here give me a hand?

    Thanks!
     
    kentuckyslone, May 24, 2007 IP
  2. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you using CPanel?
     
    MD.45, May 24, 2007 IP
    kentuckyslone likes this.
  3. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #3
    Yes I am using cPanel - thanks for the quick reply here
     
    kentuckyslone, May 24, 2007 IP
  4. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    OK, you need to click on MySQL databases, and then right at the bottom you should find a link for phpmyadmin - once logged in select your database, and select export.

    Another option is to go to backups and download from there :)
     
    MD.45, May 24, 2007 IP
  5. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #5
    For some reason the cpanel where the site is originally located doesnt have the backup icon.

    I tried the export and was able to DL the file to my hard drive in .gz format (from phpmyadmin) but whenever I try to import it into the new server/hosting acct I keep getting errors.
     
    kentuckyslone, May 24, 2007 IP
  6. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    What errors are you getting?
     
    MD.45, May 24, 2007 IP
  7. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    When you click on export, don't click save to file it will open up a window with all your tables and other info you could CTRL & A and then copy and paste it into a notepad file and save it with an 'sql' extension on your desktop. Try uploading it that way.
     
    MD.45, May 24, 2007 IP
  8. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #8
    Here is the error message: (I replaced actual DB info with *****)

     
    kentuckyslone, May 24, 2007 IP
  9. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #9
    I just tried it that way and got the same error message - I went to phpmyadmin and clicked on 'import'
     
    kentuckyslone, May 24, 2007 IP
  10. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    That error message is usually a result of attempting to access your server/sql without specifying a valid username and password.

    Is this a dedicated/vps server or are you in reseller account?
     
    MD.45, May 24, 2007 IP
  11. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #11
    It is a reseller account - my own - and I am logged in using this particular accounts credentials - else it wont let me access phpmyadmin

    Perhaps I should create the user and password in the MY SQL first?
     
    kentuckyslone, May 24, 2007 IP
  12. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Sorry i meant your mysql u/name and p/word.
     
    MD.45, May 24, 2007 IP
  13. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #13
    OK so I went to the My SQL page and created the user and password for the DB. Tried the import again and got the same error message. I am at a loss as to what needs to be done.
     
    kentuckyslone, May 24, 2007 IP
  14. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #14
    yes you need to create the DB first and then import :)
     
    MD.45, May 24, 2007 IP
  15. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #15
    OK I did that this time. I got a different error:

     
    kentuckyslone, May 24, 2007 IP
  16. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I've just PM'd you :)
     
    MD.45, May 24, 2007 IP
  17. MD.45

    MD.45 Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Hi, all done for you :)
     
    MD.45, May 24, 2007 IP
  18. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #18
    kent

    Delete the database
    Create it again
    Creat a user with pass
    Associate it with the database
    Import!

    *For others who may be in similar situation.
     
    inworx, May 27, 2007 IP