How can I unloc k all the sqlite db's in my profile. 的最新解答https://support.mozilla.org/zh-TW/questions/10260112014-10-21T11:05:11-07:00I called for the big guys to help. Maybe one of them knows. Good luck.
2014-10-21T11:05:11-07:00fredmcd-hotmailhttps://support.mozilla.org/zh-TW/questions/1026011#answer-644236<p>I called for the big guys to help. Maybe one of them knows. Good luck.
</p>I solved the sqlite reading problem.
Mozilla software uses its own sqlite library, and when I wrote 2014-10-21T06:26:48-07:00Anomaloushttps://support.mozilla.org/zh-TW/questions/1026011#answer-644091<p>I solved the sqlite reading problem.
</p><p>Mozilla software uses its own sqlite library, and when I wrote a tiny C program linking to that library, instead of the library that comes with my linux distribution (Centos), everything works fine.
</p><p>I thought of this only because I tried installing Mozilla's Firefox, rather Centos's. And there I saw it: <a href="http://libmozsqlite3.so" rel="nofollow">libmozsqlite3.so</a>.
</p><p>I still have no clue about what kind of conflict/problem prevents me from using FF and Thunderbird on this machine. Both run fine on all six of my other machines.
</p>Dear Fred,
1. I know what sqlite is and I use it frequently in my program for my computer science wo2014-10-18T04:24:49-07:00Anomaloushttps://support.mozilla.org/zh-TW/questions/1026011#answer-642802<p>Dear Fred,
</p><p>1. I know what sqlite is and I use it frequently in my program for my computer science work.
</p><p>2. If you read my original question, you will see that the sqlite db's in my mozilla profile do not open:
</p><pre> On all the databases, I get the error: "file is encrypted or is not a database."
(I'll paste in the outcome from the python intepreter at the end here)
</pre>
<p>3. If you read my original question, you will also see that I ask about this because Thunderbird and Firefox both crash my X-session (which gives me the graphical user interface in Linux). So I have two problems: there is a library conflict between Mozilla's sqlite library and some shared code in Gnome -- the Window Manager I use, or in my configuration of Gnome and my video driver.
</p><p>So if you or anyone else has an idea of where that conflict might be, I'd be grateful. Meanwhile, after poking around, I realized I can recover the bookmarks I want from the json files in my bookmarkbackups directory.
</p><p>Meanwhile, I cannot open my Firefox on this machine so I cannot use any F.F. mode, add-on, or extension.
</p>
<hr>
<p>p.s.&nbsp;:
</p><p>$ python
Python 2.7.3 (default, May 16 2012, 11:52:19)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import sqlite3
&gt;&gt;&gt; con = sqlite3.connect("places.sqlite")
&gt;&gt;&gt; cur = con.cursor()
&gt;&gt;&gt; cur.execute ('select * from sqlite_master where type="table"')
Traceback (most recent call last):
</p><pre> File "&lt;stdin&gt;", line 1, in &lt;module&gt;
</pre>
<p>sqlite3.DatabaseError: file is encrypted or is not a database
</p>http://www.ehow.com/how_12007339_read-sqlite-file.html
http://file.org/extension/sqlite
http://en.wi2014-10-18T02:42:52-07:00fredmcd-hotmailhttps://support.mozilla.org/zh-TW/questions/1026011#answer-642786<p><a href="http://www.ehow.com/how_12007339_read-sqlite-file.html" rel="nofollow">http://www.ehow.com/how_12007339_read-sqlite-file.html</a>
</p><p><a href="http://file.org/extension/sqlite" rel="nofollow">http://file.org/extension/sqlite</a>
</p><p><a href="http://en.wikipedia.org/wiki/SQLite" rel="nofollow">http://en.wikipedia.org/wiki/SQLite</a>
</p>I have a Centos system -- like Red Hat and Fedora -- and I have no safe mode as such. Rescue mode 2014-10-17T01:41:45-07:00Anomaloushttps://support.mozilla.org/zh-TW/questions/1026011#answer-642267<p>I have a Centos system -- like Red Hat and Fedora -- and I have no safe mode as such. Rescue mode gives me a minimal console -- not a gui that would run Firefox.
</p><p>I think Ubuntu may have something closer to Windows/Mac safe mode, but that doesn't apply.
</p><p>I simply trying to open the sqlite file *outside* of Firefox.
</p><p>I once wrote a python script that read the Firefox cookies.sqlite, and it worked. That was a while ago. Are the databases encrypted or otherwise locked now? How can I deal with that?
</p>Start your Computer in safe mode. Then start Firefox. Try Safe web sites.
2014-10-17T00:04:53-07:00fredmcd-hotmailhttps://support.mozilla.org/zh-TW/questions/1026011#answer-642224<p>Start your <strong>Computer</strong> in safe mode. Then start Firefox. Try <strong>Safe</strong> web sites.
</p>Thanks, but there's no explanation in the versions. I have a Centos 5.11 system that is completely u2014-10-16T20:42:39-07:00Anomaloushttps://support.mozilla.org/zh-TW/questions/1026011#answer-642176<p>Thanks, but there's no explanation in the versions. I have a Centos 5.11 system that is completely up-to-date for the distro and the version. That includes Firefox 31.2, and anyway all the dependencies would be satisfied by the distro.
</p>Did you check if you meet the System Requirements (GTK+ and GLib) for the current Firefox version?
2014-10-16T13:24:58-07:00cor-elhttps://support.mozilla.org/zh-TW/questions/1026011#answer-642091<p>Did you check if you meet the System Requirements (GTK+ and GLib) for the current Firefox version?
</p>
<ul><li><a href="https://www.mozilla.org/en-US/firefox/33.0/system-requirements/" rel="nofollow">https://www.mozilla.org/en-US/firefox/33.0/system-requirements/</a>
</li></ul>
<p>You can try to install an older Firefox version like the 31.2.0 ESR version to see if that version works.
</p>
<ul><li><a href="https://www.mozilla.org/en-US/firefox/organizations/all.html" rel="nofollow">https://www.mozilla.org/en-US/firefox/organizations/all.html</a>
</li></ul>
<ul><li><a href="https://www.mozilla.org/en-US/firefox/31.2.0/releasenotes/" rel="nofollow">https://www.mozilla.org/en-US/firefox/31.2.0/releasenotes/</a>
</li><li><a href="https://www.mozilla.org/en-US/firefox/organizations/system-requirements/" rel="nofollow">https://www.mozilla.org/en-US/firefox/organizations/system-requirements/</a>
</li></ul>Firefox was crashing the X session in safe-mode, too, so I cannot use any Firefox functionality to 2014-10-16T13:06:58-07:00Anomaloushttps://support.mozilla.org/zh-TW/questions/1026011#answer-642087<p>Firefox was crashing the X session in safe-mode, too, so I cannot use any Firefox functionality to repair whatever's wrong. For now I'm not using Firefox on that machine, but I would like to get at some of my bookmarks to use in another browser, like the one I'm using now, Opera, or in Firefox on another machine.
</p>Start Firefox in Safe Mode {web link}
While you are in safe mode;
Type about:preferences<Enter>2014-10-16T10:30:36-07:00fredmcd-hotmailhttps://support.mozilla.org/zh-TW/questions/1026011#answer-642008<p><strong><a href="https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode" rel="nofollow">Start Firefox in Safe Mode</a></strong> {web link}
While you are in safe mode;
</p><p>Type <strong>about:preferences</strong>&lt;Enter&gt; in the address bar
</p><p>Select <strong>Advanced &gt; General.</strong>
Look for and turn off <strong>Use Hardware Acceleration</strong>.
</p><p>Poke around safe web sites. Are there any problems?
</p><p>Then restart.
</p>Thanks. I will try sqlitemanager.php.
As far as the backups, I searched through them but could find2014-10-16T02:47:02-07:00Anomaloushttps://support.mozilla.org/zh-TW/questions/1026011#answer-641750<p>Thanks. I will try sqlitemanager.php.
</p><p>As far as the backups, I searched through them but could find the many, most used links that I keep in the Bookmarks toolbar. I can see the other links that were in my Bookmarks menu.
</p>Yes, Firefox was closed. I couldn't get it started. Besides not opening, it crashed my X windows. Th2014-10-16T02:43:25-07:00Anomaloushttps://support.mozilla.org/zh-TW/questions/1026011#answer-641745<p>Yes, Firefox was closed. I couldn't get it started. Besides not opening, it crashed my X windows. Therefore, I cannot use any extensions or adds on. But since Firefox did not quit cleanly, something might have happened. As I said, I cannot open any of the sqlite dbs in my profile, either within python or in the sqlite3 interactive.
</p><p>I don't have a clue why all the db's would be corrupted/locked/whatever. If they are recoverable, I'd like to do so. (the error msg is consistent: "file is encrypted or is not a database.") I don't know sqlite very well, so there may be something I can do.
</p><p>I'll try to figure out what is happening with Firefox crashing X later. This is a Redhat flavor and there's a dependency on the xulrunner package, accounting for the crashing of both F.F. and Thunderbird.
</p>If you can't open Firefox, that addon won't do anything for you. You can use an external Sqlite Mana2014-10-16T02:37:56-07:00the-edmeisterhttps://support.mozilla.org/zh-TW/questions/1026011#answer-641741<p>If you can't open Firefox, that addon won't do anything for you. You can use an external Sqlite Manager application like this. <a href="http://www.sqlabs.com/sqlitemanager.php" rel="nofollow">http://www.sqlabs.com/sqlitemanager.php</a>
</p><p>You're probably going to have a problem trying to figure out how to use it, along with figuring out the "queries" to use to view the data types; it's not easy to use.
</p><p><br>
A better alternative might be to open the <strong>bookmarks.html</strong> file in your Profile folder to view and copy some bookmarks. <strong>bookmarks.html</strong> can be opened in any web browser.
</p>Is Firefox closed when you try to open the database file?
You can use this extension in Firefox:
2014-10-16T02:23:10-07:00Sayantanmozillianhttps://support.mozilla.org/zh-TW/questions/1026011#answer-641734<p>Is Firefox closed when you try to open the database file?
</p><p>You can use this extension in Firefox:
</p><pre> SQLite Manager: <a href="https://addons.mozilla.org/firefox/addon/sqlite-manager/" rel="nofollow">https://addons.mozilla.org/firefox/addon/sqlite-manager/</a>
</pre>
<pre> hope it will solve your problem
</pre>