โปรแกรมแบ่งไฟล์ sql ขนาดใหญ่ให้เล็กลง SQL Dump File Splitter (ดีจริง ๆ)
หน้าแรก PHP MySQL เกร็ดความรู้ โปรแกรมแบ่งไฟล์ sql ขนาดใหญ่ให้เล็กลง SQL Dump File Splitter (ดีจริง ๆ)
Scenario: You are a conscious user and you back up your sites database every once in a while. And you sit smiling and content knowing that your precious data is safe. Just to discover after disaster strikes that you cant restore the contents of the SQL dump file because of upload size limitations or becausephpMyAdmin would run out of memory while decompressing the gzip / zip file.
In these cases there are two solutions at hand: if you have console access you can login and import the plain SQL file (which you previously uploaded via FTP) by typing a command like mysql -uusername -ppassword < dumpfile.sql or if you only have access to phpMyAdmin you can open up a text editor and split the SQL file into smaller parts that can be uploaded sequentially. The problem si that if you have a larger dump file this can be a reeeaaaly time consuming job.
Today I encountered a problem like this. And since I had no console access and I was in no mood to lose a few precious hours splitting up a 40 meg file by hand I googled for sql splitter and I found a program called SQLDumpSplitter 2. Unfortunately the authors site was not working (and since I dont know any German I couldnt really figure out why) but I found an alternative download ona dutch web developer forum. And since that forum required to be a member to be able to download I thought I should offer yet another alternative download location without all those registration related mini headaches. Here on this site
So here it is ladies and gentlemen: download SQLDumpSplitter 2 (or zip compressed). All credits for writing this program go to Philip Lehmann-Böhm (http://www.philiplb.de).
refer: http://www.rusiczki.net/2007/01/24/sql-dump-file-splitter/
ขึ้นไปด้านบน

