vote up 1 vote down star

I have a 16GB sql database backup I have just taken, what software can I open it with for Mac?

I have tried TextMate, but that just fails completely by just opening a blank page and not attempting to open it. Any software will do (raw text/UI).

flag

6 Answers

vote up 5 vote down

Assuming the SQL file was not created on that Mac, and depending on what you want to do with its data: just install the database software on that Mac, and import it into that new database?

link|flag
vote up 3 vote down

There's a Vim plugin that allows it to open large files.

Then you could either go with the CLI version already installed or use MacVim.

link|flag
vote up 1 vote down

How about:

less file.sql

from a terminal window? You can also use grep, etc.

link|flag
vote up 1 vote down

BBEdit can probably handle it (so should TextWrangler), but unless you really need to get inside and make some changes to the data, re-importing into the proper database management software is going to be your best bet.

link|flag
In my experience TextWrangler (free) can handle large files much better than TextMate, but I haven't opened anything like 16GB with it. – donut Nov 16 at 2:40
vote up 0 vote down

Terminal -> 'vi'

link|flag
vote up 0 vote down

HexFiend is the best application I've found for extremely large files as it does not try to store the entire file in memory. While more of a hex editor than a text editor it may be more than workable given that it works very, very quickly.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.