0

T have query related to opening big sql file. I am trying to open big SQl but every time i tried to open this file in text editor system stops working or start hanging. I used

File size : 4 GB
Operating System :  Ubuntu
Text Editor : Sublime and Gedit

My question is that how could i open such big database files?

Deepak Mankotia
  • 4,404
  • 6
  • 30
  • 55

1 Answers1

1

When dealing with large files, the most effective tool for the job is typically Vim as others answered in the comments.

  1. You can use Neovim, which is an improved version of Vim, which is an improved version of Vi :) Check it out at https://neovim.io/

  2. For GUI version you can use gvim https://www.vim.org/download.php

  3. glogg - glogg is a multi-platform GUI application to browse and search through long or complex log files. It is designed with programmers and system administrators in mind. glogg can be seen as a graphical, interactive combination of grep and less. https://glogg.bonnefon.org/

  4. WindEdit A high-performance text editor for huge files and long line - https://github.com/kingToolbox/WindEdit

  5. Notepad++ plugin for viewing and editing very large files https://github.com/molsonkiko/HugeFiles

  6. For more editors for huge files check this answer: https://stackoverflow.com/a/159537/1278463

Borislav Gizdov
  • 1,323
  • 12
  • 22
  • Vim is a good program but it's an absolute monster to actually use. Good call for Neovim and/or GUI Vim... – Martin May 10 '23 at 09:44
  • Yes, Vim is not suitable for everyone as it requires learning a significant number of shortcuts and commands. For instance, you can easily delete a range of lines in a large file using the command :[from],[to]d. – Borislav Gizdov May 10 '23 at 11:34