Created
January 11, 2013 14:09
-
-
Save pixelpogo/4510898 to your computer and use it in GitHub Desktop.
Revisions
-
pixelpogo created this gist
Jan 11, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ An example: During the import of a big sql-dump MySQL encountered an error in Line 8131086: ERROR 1449 (HY000) at line 8131086: The user specified as a definer ('foo'@'%') does not exist To fix that problem I had to have a look at this specific line and, to get the context, ten lines before and after that line. This is how I did it: $ sed -n '8131076,8131096p' ~/Downloads/dump_2012-12-17.sql