<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Manjaro mariadb driver not loaded]]></title><description><![CDATA[<p dir="auto">Hi to all,<br />
I'm new to Qt and I get this error trying to connect to my Mariadb server<br />
QSqlDatabase: test driver not loaded<br />
QSqlDatabase: available driver: QTBASE QSQLITE QMYSQL QMYSQL3 QODBC ...</p>
<p dir="auto">I use Manjaro, and I installed QTCreator, mariadb-connector-c<br />
I read also the tread for ARCH.<br />
I added this line to my <a href="http://test.pro" target="_blank" rel="noopener noreferrer nofollow ugc">test.pro</a><br />
QT += sql</p>
<p dir="auto">QTPLUGIN += qsqlmysql</p>
<p dir="auto">Is all corrected , any test unit I can look at ?<br />
Thanks</p>
]]></description><link>https://forum.qt.io/topic/112969/manjaro-mariadb-driver-not-loaded</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 18:08:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/112969.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Mar 2020 12:13:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Manjaro mariadb driver not loaded on Thu, 26 Mar 2020 16:02:01 GMT]]></title><description><![CDATA[<p dir="auto">Thanks<br />
Solved<br />
changed<br />
QSqlDatabase db = QSqlDatabase::addDatabase("test");<br />
to<br />
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");</p>
]]></description><link>https://forum.qt.io/post/584954</link><guid isPermaLink="true">https://forum.qt.io/post/584954</guid><dc:creator><![CDATA[saulos]]></dc:creator><pubDate>Thu, 26 Mar 2020 16:02:01 GMT</pubDate></item><item><title><![CDATA[Reply to Manjaro mariadb driver not loaded on Thu, 26 Mar 2020 13:35:34 GMT]]></title><description><![CDATA[<p dir="auto">RTM: <a href="https://doc.qt.io/qt-5/qsqldatabase.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qsqldatabase.html#details</a></p>
]]></description><link>https://forum.qt.io/post/584911</link><guid isPermaLink="true">https://forum.qt.io/post/584911</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Thu, 26 Mar 2020 13:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to Manjaro mariadb driver not loaded on Thu, 26 Mar 2020 13:34:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi thanks for the reply.<br />
so I have to use<br />
QTPLUGIN += QMYSQL</p>
<p dir="auto">I got the example for a book and converted to Mariadb<br />
the  code is :</p>
<p dir="auto">#include &lt;QCoreApplication&gt;<br />
#include &lt;QtSql/QSql&gt;<br />
#include &lt;QtSql/QSqlDatabase&gt;<br />
#include &lt;QtSql/QSqlQuery&gt;<br />
#include &lt;QDebug&gt;</p>
<p dir="auto">int main(int argc, char *argv[])<br />
{<br />
QCoreApplication a(argc, argv);</p>
<pre><code>QSqlDatabase db = QSqlDatabase::addDatabase("test");
db.setHostName("192.168.X.X");
db.setPort(3306);
db.setDatabaseName(("test"));
db.setUserName("----");
db.setPassword("----");
if(db.open())
{
    qDebug() &lt;&lt; "Connesso";
}
else
{
    qDebug() &lt;&lt; "Fallita connessione";
    return 0;
}

return a.exec();
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://forum.qt.io/post/584910</link><guid isPermaLink="true">https://forum.qt.io/post/584910</guid><dc:creator><![CDATA[saulos]]></dc:creator><pubDate>Thu, 26 Mar 2020 13:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to Manjaro mariadb driver not loaded on Thu, 26 Mar 2020 12:16:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/saulos">@<bdi>saulos</bdi></a> said in <a href="/post/584889">Manjaro mariadb driver not loaded</a>:</p>
<blockquote>
<p dir="auto">QTPLUGIN += qsqlmysql</p>
</blockquote>
<p dir="auto">This is not needed.<br />
You need to use 'QMYSQL' as database driver - please show us how you try to open the database.</p>
]]></description><link>https://forum.qt.io/post/584890</link><guid isPermaLink="true">https://forum.qt.io/post/584890</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Thu, 26 Mar 2020 12:16:22 GMT</pubDate></item></channel></rss>