Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

I backed up and restored Firefox but my passwords will not restore

  • 11 trả lời
  • 4 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

I have followed the instructions on how to back up and restore my Firefox profile (which I had to do after a full system restore), however, my passwords have not been restored. My bookmarks are all there, but the "saved passwords" area is totally empty. Is there any way I can restore them?

I have followed the instructions on how to back up and restore my Firefox profile (which I had to do after a full system restore), however, my passwords have not been restored. My bookmarks are all there, but the "saved passwords" area is totally empty. Is there any way I can restore them?

Giải pháp được chọn

Try to create a new profile as a test to check if your current profile is causing the problem. Copy the logins.json and key3.db to that profile to see if that works.


See "Creating a profile":

If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.

Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (11)

more options

Hi leece, did your backup include these files:

  • logins.json (current file format)
  • signons.sqlite (older file format)
  • key3.db (needed if you set a master password in all cases)

Được chỉnh sửa bởi jscher2000 - Support Volunteer vào

more options

Hi, jscher2000. Yes. Those files were transferred with the profile.

more options

From what Firefox version was that backup?

Did you include prefs.js as well (not really recommended)?

logins.json and key3.db need to be there. signons.sqlite can be used instead of logins.json, but logins.json should not be present to use the signons.sqlite file and the signon.importedFromSqlite pref should not be present.

more options

Current Firefox version. I copied and replaced the entire old profile folder contents and pasted into the profile folder that was included in the new Firefox install, overwriting those files, per Firefox instructions.

Prefs.js is one of those files, as is key3.db, signons.sqlite and logins.json.

I don't see signon.importedFromSqlite in there, however.

Should I delete either the logins.json or signons.sqlite?

This is Windows 7, I forgot to mention.

Được chỉnh sửa bởi leece vào

more options

It is best to remove the signons.sqlite file and restore logins.json and key3.db another time from the backup. That should work and give you the most recent passwords from the logins.json file.

Được chỉnh sửa bởi cor-el vào

more options

Unfortunately, that did not work. Any other suggestions?

more options

Was there an Master Password previously set?

If that is the case then the MP box should have a checkmark and Firefox should ask for the Master Password. If that is not working properly then there can be a problem with the key3.db file and the passwords might be lost.


If you still have access to a computer (setup) where those passwords show in the Password Manager then use this extension to export them.


You can force Firefox to reimport the passwords from the signons.sqlite file and rebuild the logins.json file with these steps:

  • reset the signon.importedFromSqlite pref on the about:config page to the default value via the right-click context menu
  • delete the logins.json file in the Firefox profile folder with Firefox closed

When you restart Firefox then you should have the signon.importedFromSqlite pref with the value set to true and you should have the passwords imported in the Password Manager unless there may have been errors.

more options

There was no master password set.

I reset the signon.importedFromSqlite to default, closed Firefox, deleted logins.json file, restarted Firefox, rechecked the about.config and the signon.importedFromSqlite is no longer there. And the passwords aren't there either.

One other thing maybe worth mentioning (?) is that before doing that, I signed into a website with a password, and Firefox did not pop up with message to ask if I wanted to save the password. I'm not exactly sure what that may mean, if anything.

Thank you for your help and your attention. I really appreciate it!

more options

Giải pháp được chọn

Try to create a new profile as a test to check if your current profile is causing the problem. Copy the logins.json and key3.db to that profile to see if that works.


See "Creating a profile":

If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.

more options

Okay, I created the new profile, and copy/pasted logins.json and key3.db into it, opened up Firefox and BOOM! all my saved passwords were there. Yippee!

Okay, now, before my brain turns to complete mush, I'm going to attempt to read thru that last page you linked and see if I can get this new profile working with all of my original profile files. Crossing my fingers... and toes... and eyes, but that's just happening naturally after staring at this computer all day.

A bazillion thanks, cor-el! :)

more options

It is probably best to leave out at least the prefs.js file and only copy sqlite and json files that you need and a view others like cert8.db (the file date might be a lead).

There are likely files in the old profile that you no longer need because they have been replaced like localstore.rdf that is replaced by xulstore.json, so just be cautious and read the descriptions.