Bug 511087

Summary: Unable to save data to MySQL database
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: databaseAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: normal CC: zejdzztegomaila
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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