Database Transfer

Discussion in 'MySQL' started by Agent_Dweeb, Sep 19, 2007.

Thread Status:
Not open for further replies.
  1. #1
    I want to transfer a 27mb sql file from one phpBB to another phpBB forum.

    I was wondering how long would it take to import the database fully.

    Also, are there any faster ways of importing the database because I can't wait much longer.

    Thank you for your help.
     
    Agent_Dweeb, Sep 19, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Export:
    mysqldump -u DBUSER -p DBNAME > DBNAME.sql

    Import:
    mysql -p -h DBUSER DBNAME < dbname.sql

    27 m is pretty small, so shouldn't take long at all
     
    cyanide, Sep 19, 2007 IP
  3. Agent_Dweeb

    Agent_Dweeb Peon

    Messages:
    5,607
    Likes Received:
    384
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How would I run these commands and when I do run these commands where do I upload the sql file?
     
    Agent_Dweeb, Sep 19, 2007 IP
  4. Kuldeep1952

    Kuldeep1952 Active Member

    Messages:
    290
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #4
    The commands given by Agent_dweeb will probably require shell access to your account.

    If you donot have shell access, you can export the database using phpmyadmin.
    Unzip and upload it to your website. Download a small script "bigdump" and upload it also to your server. Use this script to import it.
     
    Kuldeep1952, Sep 19, 2007 IP
  5. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, you would need shell access for those commands.
    If not, then phpmyadmin will do
     
    cyanide, Sep 19, 2007 IP
Thread Status:
Not open for further replies.