I have a 250 MB backup SQL file but the limit on the new hosting is only 100 MB ...
Is there a program that let's you split an SQL file into multiple SQL files?
I have a 250 MB backup SQL file but the limit on the new hosting is only 100 MB ...
Is there a program that let's you split an SQL file into multiple SQL files?
It's not pretty (because it just splits on size, not on what is logically in the file) but you can use the unix split tool to accomplish this:
mysqldump mydb | split -b 100m mydbbackup
Make sure to check the man page for split, your copy may or may not accept the 100m size argument. Some need to have the size specified in bytes.
When you go to restore from the file you'll have to use cat to join them all back together.
cat mydbbackup.1 mydbbackup.2 mydbbackup.3 | mysql