4 Messages
•
140 Points
Sun, Oct 15, 2017 4:12 PM
Lightroom Classic: Error: database disk image is malformed :: SQL: SELECT * FROM Adobe_imageDevelopSettings WHERE id_local = ?;
What to do when receive this in LR Error: database disk image is malformed :: SQL: SELECT * FROM Adobe_imageDevelopSettings WHERE id_local = ?;
Problems
•
Updated
3 years ago
62
6
Helpful Widget
How can we improve?
Tags
No tags available
Responses
fred_ingham
23 Messages
•
686 Points
3 years ago
Lightroom uses a relational database (SQLite) to store data about your photos, edits, etc. The message you are receiving is an error message from the database to Lightroom itself regarding the SQL statement that Lightroom is attempting to execute.
Here are two quick things to try:
1. Simply exit out of Lightroom and start it over and redo whatever action you were doing at the time.
2. While in Lightroom, perform an 'optimize catalog' from the File menu.
If these two things do not work, you could attempt to 'repair' the underlying database but that is a more complicated task.
Fred
0
sally_smith_d2ec88s83y91k
4 Messages
•
140 Points
3 years ago
0
fred_ingham
23 Messages
•
686 Points
3 years ago
That said, at the macro level, when you import a file into Lightroom, it is creating a number of entries in several tables in the underlying database. If for some reason, the database is corrupted (tables and/or indexes are damaged) then, Lightroom will not be able to correctly 'find' all of your photos (at least from a database perspective). Then, if you restore your database from some point in time in the pat, anything that you had done post that time, will be unknown to Lightroom and you will need to re-do whatever it is you did.
The good news is that your photos are likely safe... the bad news is that you might need to re-create some work in Lightroom.
Let me know if Lightroom actually knows where all your photos are.
0
sally_smith_d2ec88s83y91k
4 Messages
•
140 Points
3 years ago
0
fred_ingham
23 Messages
•
686 Points
3 years ago
If not, you could just create a new catalog and import all of your photos again.
My workflow is a bit different - each time I photograph an event (sports, meeting, portrait session, etc.), I create a new folder structure and a new catalog for just those images - so at most, I might have 600-2,000 in any given catalog. That works for me, but if one uses a lot of keywords for their photos and wants to find (for example) all photos of 'trees' or cousin 'Vinnie' then, one large catalog might be the better choice.
Back to the database though... if you are getting a database image is malformed message every time you are in Lightroom... you could try to repair the database outside of Lightroom. This is an involved process and you will need to do some work from the command line to 'dump' the database and then recreate it.
Here is a link that gives you an overview of what is going on...
https://sysinfotools.com/blog/fix-error-sqlite-database-disk-image-malformed/
I am not suggesting you do what it says - just giving you an idea of what is going on and one way you might be able to address your issue and/or give you some thoughts on better search terms as you research this issue.
Keep in mind, if you do end up repairing the database, there will be 'holes' - the rows in the tables that are causing the issue(s) will not end up in the newly reconstructed database. This will cause some issues in Lightroom but you should be able to deal with those fairly easily by telling Lightroom where to find the 'missing' originals and then re-editing those photos if needed.
0
0
sally_smith_d2ec88s83y91k
4 Messages
•
140 Points
3 years ago
1
0