<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>517251</bug_id>
          
          <creation_ts>2026-03-07 18:36:36 +0000</creation_ts>
          <short_desc>MariaSQL Migration</short_desc>
          <delta_ts>2026-03-07 21:31:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Database-Migration</component>
          <version>9.0.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Andy">zunar</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>metzpinguin</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>9.1.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2501466</commentid>
    <comment_count>0</comment_count>
    <who name="Andy">zunar</who>
    <bug_when>2026-03-07 18:36:36 +0000</bug_when>
    <thetext>Hi!

I&apos;ve been experimenting a bit.
I wanted to set up a MariaDB database on my Synology NAS again (without Docker).

DigiKam&apos;s migration process includes an SQL example under &quot;Prerequisites&quot; showing how to create the user and database in phpMyAdmin. The hostname of the SQL server is simply copied from the previous tab.
CREATE USER &apos;digikam&apos;@&apos;synology&apos; IDENTIFIED BY &apos;password&apos;;
GRANT ALL ON *.* TO &apos;digikam&apos;@&apos;synology&apos; IDENTIFIED BY &apos;password&apos;;
CREATE DATABASE `digikam`;
GRANT ALL PRIVILEGES ON `digikam`.* TO &apos;digikam&apos;@&apos;synology&apos;;
FLUSH PRIVILEGES;

Unfortunately, this doesn&apos;t work in my case, as it only allows local access to the database from the Synology NAS. To allow external connections, a % symbol needs to be used.

Here&apos;s the SQL command that appears when I create it manually.
CREATE USER &apos;digikam&apos;@&apos;%&apos; IDENTIFIED BY &apos;password&apos;;GRANT ALL PRIVILEGES ON *.* TO &apos;digikam&apos;@&apos;%&apos; REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;CREATE DATABASE IF NOT EXISTS `digikam`;GRANT ALL PRIVILEGES ON `digikam`.* TO &apos;digikam&apos;@&apos;%&apos;;

Should this be noted in the description in the migration window?

Andy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2501498</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-07 20:35:52 +0000</bug_when>
    <thetext>Not really, it&apos;s just a suggestion; there are many ways to access a MySQL server. The % sign is a wildcard for any connection. And it shouldn&apos;t be used for security reasons, though it might be okay for a home user. You could also use the IP address.

Only use MySQL if you plan to use digiKam on multiple computers.
SQLite on an SSD is faster, fully supports UTF-8, etc., and is easier for the user to manage.

A NAS is not often a good MySQL server because it performs resource management and allocates limited storage and performance to services.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2501499</commentid>
    <comment_count>2</comment_count>
    <who name="Andy">zunar</who>
    <bug_when>2026-03-07 20:50:18 +0000</bug_when>
    <thetext>I also tried using the IP address. That didn&apos;t work either. I only managed to access the database successfully using %.

I&apos;m aware of the speed reduction. The local SQLite database is really very fast.

The migration is also very slow. I hope it will be finished by tomorrow morning. 96,000 files

Andy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2501502</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-03-07 21:10:51 +0000</bug_when>
    <thetext>If the migration takes this long, something is wrong with your configuration.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2501507</commentid>
    <comment_count>4</comment_count>
    <who name="Andy">zunar</who>
    <bug_when>2026-03-07 21:31:37 +0000</bug_when>
    <thetext>Everything&apos;s fine :-)

I&apos;ve already tried so many settings to speed up the MySQL server. I haven&apos;t found any good settings from other users online yet. Maybe I&apos;ll still find the perfect combination.

Oh look! The % symbol for the remote MySQL server is also mentioned in the &quot;docs.digikam.org&quot;.

Andy</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>