Bug 511087 - Unable to save data to MySQL database
Summary: Unable to save data to MySQL database
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: database (other bugs)
Version First Reported In: 5.2.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-25 11:31 UTC by Thomas Baumgart
Modified: 2025-10-25 11:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Baumgart 2025-10-25 11:31:27 UTC
SUMMARY
When saving data to a MySQL (not SQLite) database, the following error message is shown: 

> Cannot save to current database: opening database mysql in function bool
> MyMoneyStorageSqlPrivate::createDatabase(const QUrl&) /home/thb/devel/kmymoney/kmymoney/plugins/sql/mymoneystoragesql_p.h:2092

STEPS TO REPRODUCE
1. Load XML based data
2. Save as database
3. Select MySQL as backend

OBSERVED RESULT
See above error message

EXPECTED RESULT
Data is saved to database without error

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 16.0
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.12.0-160000.20-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 7.8 GiB of usable RAM

ADDITIONAL INFORMATION
Works without problems on 
Operating System: openSUSE Leap 15.6
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.4.0-150600.23.73-default (64-bit)
Graphics Platform: offscreen
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630