Bug 501453

Summary: Cannot connect to remote MySQL 8
Product: [Applications] digikam Reporter: leo zhen <lzhen.dev>
Component: Database-MysqlAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lzhen.dev, metzpinguin
Priority: NOR    
Version First Reported In: 8.5.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
See Also: https://bugs.kde.org/show_bug.cgi?id=478375
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description leo zhen 2025-03-13 15:04:04 UTC
SUMMARY
`caching_sha2_password.so` cannot be found for digikam in macos
when connecting to a MySQL 8.4.3 server

STEPS TO REPRODUCE
1. install digikam
2. try connect to a remote MySQL 8 instance

OBSERVED RESULT
```
Database connection test was not successful. 
Error was: Plugin caching_sha2_password could not be loaded: dlopen(/opt/digikam.org.arm64/lib/mariadb-10.11/plugin/caching_sha2_password.so, 0x0002): tried: '/opt/digikam.org.arm64/lib/mariadb-10.11/plugin/caching_sha2_password.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/digikam.org.arm64/lib/mariadb-10.11/plugin/caching_sha2_password.so' (no such file), '/opt/digikam.org.arm64/lib/mariadb-10.11/plugin/caching_sha2_password.so' (no such file) QMYSQL: Unable to connect
```

EXPECTED RESULT
successfully connected

SOFTWARE/OS VERSIONS
macOS: 15.13 arm64

ADDITIONAL INFORMATION
For the balance of efficiency and data disaster recovery, i'm using a SaaS remote mysql, hence i cannot change the configuration of the mysql server. therefore change the default_authentication_plugin to mysql_native_password cannot be achived

There was a issue [478375](https://bugs.kde.org/show_bug.cgi?id=478375) for the internal mysql server
Comment 1 Maik Qualmann 2025-03-13 15:38:47 UTC

*** This bug has been marked as a duplicate of bug 474472 ***
Comment 2 Maik Qualmann 2025-03-13 15:47:10 UTC
A MariaDB client or server does not currently support this authentication. See here:

https://mariadb.com/kb/en/authentication-plugin-sha-256/

Maik