Bug 501453 - Cannot connect to remote MySQL 8
Summary: Cannot connect to remote MySQL 8
Status: RESOLVED DUPLICATE of bug 474472
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (show other bugs)
Version: 8.5.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-13 15:04 UTC by leo zhen
Modified: 2025-03-13 15:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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