Created attachment 112713 [details] Patch Driver = QMYSQL, Host = localhost, User = ******, Database = /KMyMoney Driver Error: QMYSQL: Unable to connect Database Error No 1049: Unbekannte Datenbank '/KMyMoney' Text: Unbekannte Datenbank '/KMyMoney' QMYSQL: Unable to connect
Where does the extra leading slash come from? If it was actually added by KMM, then I would question the code that adds it, rather than just removing it blindly. Simply dropping the first character of the URL path would not work if there wasn't a leading slash.
(In reply to Jack from comment #1) > Where does the extra leading slash come from? If it was actually added by > KMM, then I would question the code that adds it, rather than just removing > it blindly. Simply dropping the first character of the URL path would not > work if there wasn't a leading slash. ACK, the Patch is quick and dirty.
I believe, that it's fixed by https://cgit.kde.org/kmymoney.git/commit/?id=32a8fd984b17f0eefe660082f8484930d1b155d9
Slash is gone, but there is no password dialog. Error in function int MyMoneyStorageSql::open(const QUrl&, int, bool) : opening database Driver = QMYSQL, Host = localhost, User = ********, Database = KMyMoney Driver Error: QMYSQL: Unable to connect Database Error No 1045: Benutzer '********'@'localhost' hat keine Zugriffsberechtigung (verwendetes Passwort: Nein) Text: Benutzer '********'@'localhost' hat keine Zugriffsberechtigung (verwendetes Passwort: Nein) QMYSQL: Unable to connect Error type 1
Git commit ac602ffdb0297706f1f39602856bbe20225e906c by Thomas Baumgart. Committed on 10/09/2018 at 19:47. Pushed by tbaumgart into branch '5.0'. Ask for password when connecting to database Related: bug 398409 FIXED-IN: 5.0.2 M +46 -20 kmymoney/plugins/sql/sqlstorage.cpp M +3 -0 kmymoney/plugins/sql/sqlstorage.h https://commits.kde.org/kmymoney/ac602ffdb0297706f1f39602856bbe20225e906c