gnucash stable: Bug 799603 - Does not save to mysql on localhost.

John Ralls jralls at ceridwen.us
Mon May 12 14:48:10 EDT 2025



> On May 12, 2025, at 10:28 AM, Geert Janssens <geert.gnucash at kobaltwit.be> wrote:
> 
> Op maandag 12 mei 2025 01:31:11 Midden-Europese zomertijd schreef John Ralls:
> > -#define DEFAULT_HOST "localhost"
> > +/* Flatpak build blocks access to the resolver so it can't retrieve
> > + * localhost's IP address.
> > + */
> 
> While the fix is fine, the comment is misleading. DBMS such as postgresql and mysql optimize when you choose "localhost" and will try to use a unix socket file for the connection instead of a web connection.
> 
> You could equally fix this by allowing the proper file access to these socket files on the host system from within the flatpak. I think using the ip address is less messy for a default, so no need to change the fix, but perhaps improve the comment ?
> 
> > +#define DEFAULT_HOST "127.0.0.1"
> >  #define DEFAULT_DATABASE PROJECT_NAME
> >  #define FILE_ACCESS_OPEN    0
> >  #define FILE_ACCESS_SAVE_AS 1

Geert,

OK, I rewrote the comment.

Regards,
John Ralls




More information about the gnucash-devel mailing list