GnuCash mysql backend on Fedora

I have been using GnuCash for personal finance since 2014. Two years ago, I switched over to a mysql backend because it was available in the flatpak. I never understood why the regular package on Fedora did not allow for opening a mysql database until today.

On Fedora, GnuCash is bundled with weak dependencies. GnuCash does not need mysql support to run properly. It does not make sense to require mysql support for everyone, but if you want mysql support, here is how to enable it:

  • Find out what GnuCash depends upon:
sudo dnf repoquery --depends gnucash
Updating and loading repositories:
Repositories loaded.
/usr/bin/perl
dconf
gnome-icon-theme
gnucash-docs >= 5.9
libaqbanking.so.44()(64bit)
libboost_filesystem.so.1.83.0()(64bit)
libboost_locale.so.1.83.0()(64bit)
libboost_program_options.so.1.83.0()(64bit)
libc.so.6(GLIBC_2.38)(64bit)
libcairo.so.2()(64bit)
libdbi-dbd-mysql
libdbi-dbd-pgsql
libdbi-dbd-sqlite
...
# These three packages enable support for their respective DB
 
  • Install the option you want
$ sudo dnf install -y libdbi-dbd-mysql
  • Enjoy using the native GnuCash package to save to mysql.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.