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.

Installing large database :::help!!!:::

Discussion in 'MySQL' started by triphp123, Sep 24, 2008.

  1. #1
    Ok the database is 19.1 mb and when I try to upload or restore I get connection timed out etc etc.

    :mad::mad:

    Whats the best way to overcome this?
     
    triphp123, Sep 24, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Do you have ssh access to the database? Also, what type of file or source are your restoring from?
     
    jestep, Sep 24, 2008 IP
  3. triphp123

    triphp123 Well-Known Member

    Messages:
    1,491
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    125
    #3
    I can get ssh access but have never used it so a little cautious on that score.
    The database is a mysql dump text file.
     
    triphp123, Sep 24, 2008 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    My personal recommendation is to use a program like Navicat (http://www.navicat.com/) to import the data into the database. There is a free personal version and a 30 day trial for commercial use. Super easy system to restore and backup databases from your local computer,

    Another good way would be to ftp the dump file to the server, and use mysql to restore it from the command line. Sounds a little intimidating but isn't especially hard.

    Here's a decent article on how to restore via this method: http://www.abbeyworkshop.com/howto/lamp/MySQL_Export_Backup/index.html

    The navicat is probably easier if you don't have much command line experience.
     
    jestep, Sep 24, 2008 IP
    triphp123 likes this.
  5. triphp123

    triphp123 Well-Known Member

    Messages:
    1,491
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    125
    #5
    jestep, thanks for the info, I will try Navicat first and let you know how I get on.
     
    triphp123, Sep 24, 2008 IP
  6. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #6
    Did you use bigdump.php or you just upload that 19mb file in phpmyadmin?
     
    kojakfilth, Sep 24, 2008 IP
  7. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #7
    There is also mysqldumper - it will import or export any sized database.

    Use an FTP program to upload the database to the mysqldumper files folder, then use the program to restore it. I have been using this program for about 8 months. Its backs up my 500+ meg database with no problem. The last time I restored a database, it was about 400 megs. The restore process took about 15 - 20 minutes..
     
    ~kev~, Sep 24, 2008 IP
  8. newrhodes

    newrhodes Active Member

    Messages:
    918
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    68
    #8
    I've used bigdump (http://www.ozerov.de/bigdump.php), works ok.

    Another option - you could physically split your mysql file using notepad or other, then upload them sequentially. typically I've found using files of 10 MB or less goes through with my hosting; splitting your file in 2 should work...
     
    newrhodes, Sep 24, 2008 IP
  9. SEOpaw

    SEOpaw Peon

    Messages:
    437
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you can either go to your ssh and mysql console load up your dump sql file
     
    SEOpaw, Sep 24, 2008 IP
  10. triphp123

    triphp123 Well-Known Member

    Messages:
    1,491
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    125
    #10
    Thanks for all the help and advise guys, sorted now:D
     
    triphp123, Sep 25, 2008 IP
  11. cuni18

    cuni18 Well-Known Member

    Messages:
    314
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #11
    are you using phpmyadmin if so , max upload size is smaller then your database... the easiest way is to just cut database in pieces ....and upload then..
     
    cuni18, Sep 25, 2008 IP
  12. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    #12
    upload it to ftp and then contact hosting support
     
    kind_of_the_cash, Sep 25, 2008 IP