MySQL Splitter Tool?

Discussion in 'MySQL' started by donnareed, Feb 11, 2007.

  1. #1
    Can anyone recommend a good MySQL tool or script which will split databases into multiple smaller portions?

    I have a large database on my CMS which times out when uploading through phpMyAdmin. My host does not allow shell acess, and when I have requested them to do restores in the past it has been less than successful and timely.

    So I am looking for some kind of tool which will easily let me split the database file into smaller, uploadable portions. Anyone?
     
    donnareed, Feb 11, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    I may be showing my ignorance here.

    Can't you just dump several different dumps by tables? Break it up by parts and then import it the same way?
     
    Colbyt, Feb 11, 2007 IP
  3. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Instead of break into pieces your database I would suggest upload it via bigdump.

    This script can handle very long databases being a handy alternative to phpmyadmin, just follow the direction at the top, within the file.
    www.ozerov.de/bigdump.php
     
    Pat Gael, Feb 11, 2007 IP
  4. donnareed

    donnareed Peon

    Messages:
    340
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    BigDump requires shell access, I believe, which I don't have.

    This is actually the method I hit upon, too. (Sort of a duh! moment for me)This works works for now, as all of the tables are under 25MB, which is the timeout limit on my host's phpMyadmin. But what will happen when one of my tables grows larger? Then I will need to edit manually to split it up into several files.

    Anyway, thanks for the suggestions. For now I have a good workaround.
     
    donnareed, Feb 12, 2007 IP
  5. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #5
    25mb seemsa little low. I thought most shared hosting was more like 50.

    I think the actual timeout is timed so maybe the size varies with cpu usage.
     
    Colbyt, Feb 12, 2007 IP