I have a 395meg .sql file, i have gone down the paths of using "bigdump" and "mysqldumper" Big dump crashes randomly usually about half way through and mysqldumper gives an error right at the start, the host hasn't/wont enable ssh so my last resort would be to split up the file and import it in sections, anyone know what i can use to split up the large database file??? Regards.
Use a text editor ... maybe TextPad or PHPEditor ... just cut the file up by tables ... I have used this method in the past on several occasions.
A bit out of context, but not really = Crimson Editor is a better text editor for coding etc, its got full advanced features, and it's a free project.. try it Umm, yeah - just highlight entire tables of sql and copy & paste them into separate files, naming them 1.sql, 2.sql or w/e you choose... Hope you succeed Chuckun
hmmm, in the past I have used Zend Studio to read the file (via Zend Core's php compiler) and explode(";") into an array of SQL queries. Then run foreach($sqlQueries as $query){ $z=mysql_query($query); if(!$z){ echo 'error occured with :'.$query."\n";} What you should see then is the queries that failed (so you can manually insert if needed) or if they all fail it means there is something wrong at the source. Warning, this method is extremely CPU intensive! The other would be to get a gzip program to shrink the SQL file down in size and upload the gzipped file via phpmyadmin as a zipped text file (using the import tab i believe) Try this one http:// www. download. com/ 7-Zip/ 3000-2250_4-10045185.html?tag=lst-4
If you have access to command line tools for unix or linux environments, you could use any number of tools to quickly & efficiently split up your file. Sed comes to mind as a good tool for this purpose.
it depends on data If you can edit the data after slicing then its simple .Use a normal text file splitter and then edit each slice to complete the records which are broken due to slicing Regards Alex
SQLDumpSplitter.exe http://support.schwarzkuenstler.info/index.php?_m=downloads&_a=viewdownload&downloaditemid=6&nav=0 Very easy simple tool.
i've used sqldumper.de - its free - it worked great. I can backup my 2gig article directory database in about 15 minutes.