View Full Version : Editor for large SQL text file
anton-io!
Sep 21st 2005, 9:54 pm
Can anyone recommend a good editor to chunk up or even open a large SQL text file?
The file is 230MB+ in size, I try in Wordpad and things really slow down ... lol! :eek:
I'm trying to import the file in to a mysql db, but it balks at record 40,000 or something ... wanting to chunk it up and do 5000 records at a time or something like that!
Greatly appreciated!
daboss
Sep 21st 2005, 10:02 pm
ultraedit is strongly recommended... their site: http://www.ultraedit.com/
or you can download it from most of the major download sites - e.g. tucows...
forkqueue
Sep 21st 2005, 10:37 pm
Real men use vim (http://www.vim.org).
nevetS
Sep 21st 2005, 11:11 pm
I agree with ultraedit. I've opened files larger than a few gigabytes. Trial version is full featured, with no spam other than a nag screen on startup. It's well worth a purchase, but just to open this file, the trial will do the job for you.
Skeleton
Sep 21st 2005, 11:40 pm
You can also handle it using Editplus, editplus.com
honey
Sep 22nd 2005, 1:31 am
TextPad works perfect as well. I use both Textpad and Ultraedit. There are things that Ultraedit can do and Textpad can;t and things that Textpad can do but Ultraedit can;t.
johnt
Sep 22nd 2005, 1:37 am
Real men use vim (http://www.vim.org).
Sometime they use awk (http://www.gnu.org/software/gawk/gawk.html) too. ;)
zsikic
Feb 21st 2007, 11:23 am
I believe www.TextMaster.ca has a solution for you.
Regards,
Jake
sawz
Feb 26th 2007, 12:17 pm
is there an editor that will open a db partially? say the first 100,000 lines or so? i have a db thats 350MB plus but its so large i cannot open it.
Sini
Feb 26th 2007, 2:10 pm
With linux shell (over ssh for example) you can easilly chop it in pieces with for example following command:
Lets assume your sql file is example.sql. With this command the sql file will be choped to 50m pieces. CD to the directory where the sql file is located and execute following command:
split -b 50m example.sql example_
You will get files example_aa , example_ab and so on.
now you can open any of those files, edit and save. When you are done you can combine those files with a command like for example:
cat example_[aa-bb] > example.sql
commandos
Feb 26th 2007, 3:29 pm
textpad also should be ok ... or emacs :D
sawz
Feb 27th 2007, 3:51 am
Sini:
its on a windows server and its 750MB sql file. i have downloaded it and i would ike to get into it. is there something that will open it on my desktop like that? in pieces? i don't have enough memory and i would like to be able to do something with this file.
Your Content
Feb 27th 2007, 3:54 am
I suggest Metapad, www.liquidninja.com/metapad
Sini
Feb 27th 2007, 6:31 am
Sini:
its on a windows server and its 750MB sql file. i have downloaded it and i would ike to get into it. is there something that will open it on my desktop like that? in pieces? i don't have enough memory and i would like to be able to do something with this file.
You could use for example this one...it seems to be popular and easy to use. I haven't tested it though as I haven't been using windows for any administration like this in ages: http://www.soft32.com/download_186703.html
sawz
Feb 27th 2007, 9:10 am
You could use for example this one...it seems to be popular and easy to use. I haven't tested it though as I haven't been using windows for any administration like this in ages: http://www.soft32.com/download_186703.html
thanks much, that worked nicely to show me they set me up with the wrong database, geez, 750MB download and its the wrong damn one...lmao
that File Splitter divided it up into easy to manage sizes and here i'm looking at a pbpbb database when its supposed to be SMF.
thanks again for the link. :D for you.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.