<div dir="auto">If you do find anything please update ticket <a href="https://bugs.kde.org/show_bug.cgi?id=398410">https://bugs.kde.org/show_bug.cgi?id=398410</a> as this is an open DB ticket I created a while back regarding access to DB backend.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 20, 2020, 16:11 Jack Ostroff <<a href="mailto:ostroffjh@aya.yale.edu">ostroffjh@aya.yale.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I decided to test the sql back end, but when I try to save as a mysql  <br>
database, I get an exception thrown that opening the database failed.   <br>
So, I'm debugging in kmymoney/plugins/sql/mymoneystoragesql_p.h.  I've  <br>
added some debugging output in createDatabase, and found something that  <br>
doesn't make sense to me.<br>
<br>
After the maindb.open() fails (around line 2044,) I confirmed that  <br>
among other values, that maindb.userName is "jack" as it should be.   <br>
However, retrieving maindb.lastError.text(), I get "Access denied for  <br>
user ''@'localhost' to database 'mysql' QMYSQL: Unable to connect".    <br>
localhost is correct, as is the blank password, but where is the  <br>
userName?  I'm going to start digging into the code for  <br>
QSqlDatabase.open() but thought I'd ask first if anyone can think of  <br>
something I might be doing wrong.  Just to confirm, I can run mysql at  <br>
command line, and the database does open, so I know the db system  <br>
(mariadb) is running, and I do have permissions to login.<br>
<br>
Jack<br>
</blockquote></div>