This is a small script that can split big SQL dumps into smaller ones (e.g. to upload them to phpMyAdmin). It also works with gzip-compressed in- and output-files. So far I've tested it only with dumps from phpMyAdmin.