Best practice: Import mySQL file in PHP; split queries - Stack Overflow
april 2011 by infovore
"Here is a memory-friendly function that should be able to split a big file in individual queries without needing to open the whole file at once:" Yep, that'll do.
php
mysql
data
import
utility
script
april 2011 by infovore