[digiKam-users] internal SQL Server error after Update to 7.10.0

Peter Orth planetorth at gmail.com
Tue Jul 18 02:15:14 BST 2023


Gilles 

Update on this. Not a trouble report. Updating from DK 7.9 with a MYSql databaseto DK 8.1 on Mac 13.3.1, MacBook Air M1

I tried upgrading directly by installing the digiKam-8.1.0-MacOS-x86-64.pkg installer
Installer ran fine.
Launching DK gave an error message:

"An error occurred during the internal server start.
Details:
Database process exited unexpectedly during initial connection.<p>Executable: /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld</p><p>Arguments: --defaults-file=/Users/XXX/Library/Application Support/digikam/digikam/mysql.conf, --datadir=/Users/XXX/Documents/Digikam-DBFiles-05-13/.mysql.digikam/db_data, --basedir=/Applications/digiKam.org/digikam.app/Contents//lib/mariadb/, --socket=/Users/pco2/Library/Application Support/digikam/digikam/db_misc/mysql.socket</p><p>Process error: Unknown error</p>”

I reinstalled DK 7.9 from a .pkg file. 

I migrated the database to SQ Lite using the Database settings in the preferences pane. I only later saw that there is a migration tool in the Settings menu.
The process took around 40 minutes.

I then installed DK 8.1 again, and everything works. I’m sticking with the SQLite, it seems to work well.  I lost many (but not all) settings, so I had to re-work all that. 

Wanted to report in that in my experience, it was still necessary to migrate out of MariaDB/MySql  in order to upgrade to DK 8.1
Hopefully this helps someone else.

Thanks for all you do

Peter Orth

> On Mar 15, 2023, at 11:09 AM, Peter Orth <planetorth at gmail.com> wrote:
> 
> Thanks Gilles for the thorough and prompt reply!
> I will wait for an 8.x release.
> Hopefully this is helpful info for others as well,
> 
> Salutations Distinguées!
> ---
> Peter Orth 
> 310 413 8267
> sent from the oPhone
> 
>> On Mar 15, 2023, at 10:26, Gilles Caulier <caulier.gilles at gmail.com> wrote:
>> 
>> Le mer. 15 mars 2023 à 17:33, Peter Orth <planetorth at gmail.com> a écrit :
>>> 
>>> Hi Gilles,
>>> 
>>> I’m trying to understand this problem before upgrading from DK 7.9 on an M1 Mac OS 13.1
>>> 
>>> Here is my layperson’s understanding:  In finding a work-around for the problems that users experienced connecting to an external database on OS 13 Mac, some database handling changes were made in 7.10.
>>> Now, in order to continue to use Mysql Internal database on DK 7.10, I’ll need to follow the steps that you outlined below, migrating to SQLite in DK 7.9, then opening that database in 7.10 and migrating back to Mysql.
>>> Does that sound roughly correct?
>> 
>> Yes. By this way the internal mysql database structure will be
>> downgraded from version 10 to 5. This does not decrease the database
>> performances.
>> 
>>> 
>>> Questions:
>>> 
>>> 1. I have an internal database of 335K images. Will SQLite be able to handle a database of that size? I remember that SQLite is not recommended beyond a certain number of assets (100K)?
>> 
>> Yes. Here using SSD/nvme hardware, Sqlite works like a charm. My
>> collection is around 260 K.
>> 
>> Note : with next 8.0.0, WAL sqlite option will be available to
>> increase the database structure, safety, and performances. It's
>> explained in online documentation:
>> 
>> https://docs.digikam.org/en/setup_application/database_settings.html#database-type-criteria
>> 
>>> 
>>> 2. Will this workaround be necessary if I skip DK 7.10 and go straight to 8.0 (future) release?  I’m not currently using a remote database.
>> 
>> Not at all. If the fix introduced in 7.10.0 does not concern your
>> workflow, stay in 7.9.0 until the 8.0 release.
>> 
>>> 
>>> 3. Clarification on step 3 below: "Rename the ".mysql.digikam" folder with ".bak" in your collection.”  What exactly is the resulting name, where does the “.bak” go?
>> 
>> ".mysql.digikam.bak"
>> 
>>> When performing the inverse operation in DK 7.10, this folder's name needs to revert to ".mysql.digikam”, or will a new folder be written?
>> 
>> No. A new one will be created instead. The older one is still here as
>> backup in case of.
>> 
>>> 
>>> 4. I assume that switching databases Mysql>SQLite>Mysql will result in a very long (hours/days) rebuilds of the database. Is this the case?
>>> 
>> 
>> Yes, it can be long, but it's a conversion of database contents, not a
>> re-scan of the collection.
>> 
>>> 5. If SQLite can handle the 330K images, is there a reason to go back to MariaDB/Mysql in 7.10 ?
>> 
>> I think no. Read well the online documentation about the setup database.
>> 
>> Best
>> 
>> Gilles Caulier



More information about the Digikam-users mailing list