
![]() |
jp29997
hello smart guys:
I have 515 mb sql dump - i can probably figure a way to open it manually and split it up (its got a lot of data i dont need to import) but is there a command line short cut to split this thing up semi-intelligently, you know like between blocks of statements? perkiset
I don't know of any simple commands, but some immediate ideas come to mind:
Can you select into another "temp" table that has precisely what you want, then dump that? Is it a size of download problem? SSH to that box, store the SQL there, tar.gz it for the trip home /p jp29997
nah download is OK, I have it on my box, is mainly the pain of opening it - im moving this dump to a VPS, and i might as well edit it on my local
machine before dumping it OR split it intelligently to make it easier to deal with as an iterative taski can split it with a program like hjsplit for windows or split -b or split -l in linuxand then clean it up, but i was hoping someone might have a little shell script or batch file that did this smarter like splitting it just before a sql file comment block-- -- dumping... -- no big deal i'll just futz with it, my specialty or alternative anyone use a text editor that loves gigantic file? im using notepad++ which is pretty challenged by a file this size edit: please dont suggest e macs :rofl:perkiset
quote author=jp29997 link=topic=292.msg1965#msg1965 date=1181081823 edit: please dont suggest e macs :rofl:Fair enough. Use VI. ![]() |

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads