copy all the MySQL database

Discussion in 'MySQL' started by kailash, Sep 8, 2007.

  1. #1
    hi,

    Would it possible to transfer all the MySQL databases from one server MySQL server to another server?

    Kailash
     
    kailash, Sep 8, 2007 IP
  2. richardmyers

    richardmyers Peon

    Messages:
    589
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    With PHPMyAdmin yeah it's really simple, just export the database from the old server then import it on the new server. If it's a larger database then you could use a mysql dump script.
     
    richardmyers, Sep 8, 2007 IP
  3. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Hello,
    Do you have a large database?
     
    jakomo, Sep 8, 2007 IP
  4. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #4
    I want to copy all the databases from exsting MySQL server to new MySQL server.

    Kailash
     
    kailash, Sep 8, 2007 IP
  5. richardmyers

    richardmyers Peon

    Messages:
    589
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Depending on the size of the database you should be able to use PHPMyAdmin, if the databases are of the larger variety then it might be worth using a mysql dump as I have suggested :)
     
    richardmyers, Sep 9, 2007 IP
  6. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #6
    I think he wants to do a "bunch of databases" all in one easy step.
    Can the mysql dump script do this?
     
    gemini181, Sep 9, 2007 IP
  7. richardmyers

    richardmyers Peon

    Messages:
    589
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Not any of the free ones that I have used in the past, a premium script might do though...
     
    richardmyers, Sep 9, 2007 IP
  8. MartynD

    MartynD Well-Known Member

    Messages:
    271
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #8
    backup whole database
    mysqldump --all-databases | gzip >dbbackup.sql.gz
    Code (markup):
    then just wget it to your new server. and import..
     
    MartynD, Sep 9, 2007 IP
  9. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #9
    Thanks MartynD,

    I will try it.

    Kailash
     
    kailash, Sep 9, 2007 IP
  10. meetgs

    meetgs Active Member

    Messages:
    957
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    70
    #10
    for UTF-8 tables:
    mysqldump your_db_name --opt --host=localhost -u db_username -p --default-character-set=utf8 > dumpfile.dump
     
    meetgs, Sep 21, 2007 IP