Bug 442200 - cannot select homebrew mariadb
Summary: cannot select homebrew mariadb
Status: RESOLVED INTENTIONAL
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (show other bugs)
Version: 7.3.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-09 02:23 UTC by sayo-melu
Modified: 2023-05-01 07:27 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sayo-melu 2021-09-09 02:23:04 UTC
SUMMARY


STEPS TO REPRODUCE
1. install digikam
2. brew install mariadb
3. cannot select mariadb

OBSERVED RESULT
cannot select mariadb installed with homebrew

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
mariadb with homebrew is installed under /usr/local/bin and linked from /usr/local/Cellar/mariadb, and the mysqld is also a link from mariadbd. but digikam do not accept links/alias.
Comment 1 sayo-melu 2021-09-09 02:26:32 UTC
there are three way to solve this.

1. auto detect mariadb from $PATH
2. allow choosing alias when choosing mysql bin
3. always attach the latest version of mariadb
Comment 2 caulier.gilles 2021-09-09 09:13:34 UTC
Hi,

Try this : go to digiKam/Preference dialog, MISC/appareance section, and turn on "use native dialog" option.

Restart digiKam, and go back to the setup mariadb dialog and try again to select the link on FS.

Best regards

Gilles Caulier
Comment 3 Maik Qualmann 2021-09-09 11:32:47 UTC
I am a little bit surprised. If you want to use an external MySQL server you don't need binary paths to the MySQL files. With an internal MySQL server you should use the MySQL server supplied with the digiKam package. Remember that digiKam must control programs such as mysqld or mysqladmin and must have the appropriate rights. If you want to use another MySQL server for the internal server - for whatever reason - you should check the Terminal Log to see if there are any problems, e.g. the server is shut down properly, etc. Otherwise, data may be lost.

Maik
Comment 4 caulier.gilles 2023-05-01 07:27:54 UTC
I agree with Maik, digiKam is provided with the relevant and fully tested Mysql/Mariadb version under MacOS. No needs to use an extra one. I close this file.