Advertisement
therube

places.sqlite from SeaMonkey 2.0 to 2.1 without .corrupt

Mar 5th, 2011
3,661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. how to get SM20 places.sqlite to successfully (without .corrupt) load into SM21
  2.  
  3.  
  4. had a thought ...
  5. since FF36 can successfully read SM20 places ...
  6. FF, AMO, "sqlite".  so i search AMO for "sqlite".  only a few hits of interest.
  7.  
  8.  
  9. "SQLite Manager"
  10. https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/
  11.  
  12. i'd seen that before, & was really clueless as to how to use it.  simply confusing.
  13.  
  14.  
  15. "SQLite Optimizer"
  16. https://addons.mozilla.org/en-US/firefox/addon/sqlite-optimizer/
  17.  
  18. figured i'd give it a shot, nothing to loose.
  19.  
  20.  
  21. in each case, i start with existing SM20 places.sqlite & copy into FF36 Profile
  22.  
  23.  
  24. so i install each extension into FF36
  25. Optimizer is quite basic.  REINDEX & VACUUM before REINDEX.
  26. nothing to loose, i REINDEX.
  27.  
  28. done, i copy FF36 places.sqlite into SM21 Profile
  29.  
  30. open SM21 & my history is there, no .corrupt. Yey!
  31.  
  32.  
  33. that was easy & worked, nothing wrong with that.
  34.  
  35.  
  36. so now seeing as REINDEX accomplished something, i turn back to Manager to
  37. see what options that offers.  in the past Manager was nothing but confusion
  38. to me.  now that i have something to "go after", maybe it can work to.  &
  39. Manager does have REINDEX.  not sure how it works, you can run it separately
  40. on various Tables (11 it shows).  don't know if selecting 'Tables' itself
  41. does all 11 or if you need to do each of the 11 separately?  i did it on all
  42. 11 plus 'Tables' itself.
  43.  
  44. that done, i copy FF36 places.sqlite into SM21 Profile
  45.  
  46. open SM21 & my history is there, no .corrupt. Yey #2!
  47.  
  48.  
  49. so REINDEX, whatever that may do (like "reindex" i suppose) helps.
  50. back to sqlite3, i see no "reindex", but thinking it must be there, just
  51. don't know what to look for/how to use?
  52.  
  53. http://www.sqlite.org/lang_reindex.html
  54.  
  55. still not sure.  looks like this is an external command line parameter
  56. rather then an internal command to run?
  57.  
  58. comment here seems to bear that out, http://www.gettingclever.com/2008/06/vacuum-your-firefox-3.html?showComment=1252427715864#c9000637058855509056
  59.  
  60. sqlite3 places.sqlite 'VACUUM;'
  61. sqlite3 places.sqlite 'REINDEX;'
  62.  
  63. for i in `find ~/.mozilla -name \*.sqlite`; do sqlite3 $i vacuum; done
  64. for i in `find ~/.mozilla -name \*.sqlite`; do sqlite3 $i reindex; done
  65.  
  66.  
  67. so had i known of sqlite3's command line options (syntax) some time ago
  68. & had some inkling that REINDEX might help, i would have had this licked
  69. by now
  70.  
  71. http://www.sqlite.org/syntaxdiagrams.html#reindex-stmt
  72.  
  73. so  /sqlite3 places.sqlite 'REINDEX'/  should accomplish the same as what
  74. Manager & Optimizer have done.  (untested of yet)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement