Skip to content

Instantly share code, notes, and snippets.

@jersub
Created December 9, 2013 08:31
Show Gist options
  • Save jersub/7869100 to your computer and use it in GitHub Desktop.
Save jersub/7869100 to your computer and use it in GitHub Desktop.
Unlock Chromium's SQLite databases when your profile is corrupted. From kyron: http://www.google.com/support/forum/p/Chrome/thread?fid=46cbd32bea7f4fec00048665de6e82de&hl=en
IFS="
"
for I in `file ~/.config/chromium/Default/*|grep SQL|cut -f1 -d:`; do echo '.dump' | sqlite3 $I > ${I}.sql && rm $I && sqlite3 $I < ${I}.sql && rm ${I}.sql ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment