<?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[I Can&#x27;t load the QMySQL with Qt 6 C++]]></title><description><![CDATA[<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/a391a07c-9035-44cd-a09b-45b5cc04f40a.png" alt="e7a510ae-b8d2-4bae-9156-60ab5aa591a6-image.png" class=" img-fluid img-markdown" /><br />
At the first time after make the mingw32-make and install, The QMYSQL still doesn't load. So I do with</p>
<ol>
<li>Copy the sqldrivers plugins Directory in you Application Run Directory</li>
<li>Copy the libmysql.dll And libmysqld.dll in Your Application Run Directory</li>
<li>Copy the libmysql.dll And libmysqld.dll in bin Directory Of Your Qt MinGW Kit Installed Directory.</li>
<li>Also Check The MySQL Database Connection Parameter.<br />
The QMYSQL add in available drivers. But it doesn't load.  Please check help me</li>
</ol>
]]></description><link>https://forum.qt.io/topic/163374/i-can-t-load-the-qmysql-with-qt-6-c</link><generator>RSS for Node</generator><lastBuildDate>Sat, 26 Sep 2026 20:10:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163374.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Sep 2025 13:02:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I Can&#x27;t load the QMySQL with Qt 6 C++ on Tue, 30 Sep 2025 06:00:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tuanhoc8">@<bdi>Tuanhoc8</bdi></a> This is not what you should be looking for. These are information that tells you these plugins exist. But we already know that from your "available drivers" output.<br />
Find something like "loaded" or "cannot load" / “failed”.</p>
<p dir="auto">By the way, where is your libmysql.dll coming from?   (You don't need to have libmysqld.dll though)<br />
If you get it from MySQL Server, I remember it depends on libopenssl so it needs libcrypto-3-x64.dll and libssl-3-x64.dll to load. You may use Dependencies tool to check that.<br />
(I highly recommend to build the plugin using the library from MariaDB instead of MySQL Server because it depends the least.)</p>
]]></description><link>https://forum.qt.io/post/832194</link><guid isPermaLink="true">https://forum.qt.io/post/832194</guid><dc:creator><![CDATA[Bonnie]]></dc:creator><pubDate>Tue, 30 Sep 2025 06:00:49 GMT</pubDate></item><item><title><![CDATA[Reply to I Can&#x27;t load the QMySQL with Qt 6 C++ on Mon, 29 Sep 2025 13:59:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a><br />
After add the QT_DEBUG_PLUGINS=1 The cmd show this and i see that QMYSQL is same with another sql. So I don't know @@<br />
qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QSQLITE")<br />
qt.core.plugin.factoryloader: looking at "qsqlmimer.dll"<br />
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/mingw_64/plugins/sqldrivers/qsqlmimer.dll, metadata=<br />
{<br />
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",<br />
"MetaData": {<br />
"Keys": [<br />
"QMIMER"<br />
]<br />
},<br />
"archlevel": 2,<br />
"className": "QMimerSQLDriverPlugin",<br />
"debug": false,<br />
"version": 395264<br />
}</p>
<p dir="auto">qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QMIMER")<br />
qt.core.plugin.factoryloader: looking at "qsqlmysql.dll"<br />
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/mingw_64/plugins/sqldrivers/qsqlmysql.dll, metadata=<br />
{<br />
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",<br />
"MetaData": {<br />
"Keys": [<br />
"QMYSQL",<br />
"QMARIADB"<br />
]<br />
},<br />
"archlevel": 2,<br />
"className": "QMYSQLDriverPlugin",<br />
"debug": false,<br />
"version": 395264<br />
}</p>
<p dir="auto">qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QMYSQL", "QMARIADB")<br />
qt.core.plugin.factoryloader: looking at "qsqlodbc.dll"<br />
qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/mingw_64/plugins/sqldrivers/qsqlodbc.dll, metadata=<br />
{<br />
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",<br />
"MetaData": {<br />
"Keys": [<br />
"QODBC"<br />
]<br />
},<br />
"archlevel": 2,<br />
"className": "QODBCDriverPlugin",<br />
"debug": false,<br />
"version": 395264<br />
}</p>
<p dir="auto">qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QODBC")<br />
qt.core.plugin.factoryloader: looking at "qsqlpsql.dll"</p>
]]></description><link>https://forum.qt.io/post/832170</link><guid isPermaLink="true">https://forum.qt.io/post/832170</guid><dc:creator><![CDATA[Tuanhoc8]]></dc:creator><pubDate>Mon, 29 Sep 2025 13:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to I Can&#x27;t load the QMySQL with Qt 6 C++ on Mon, 29 Sep 2025 13:12:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tuanhoc8">@<bdi>Tuanhoc8</bdi></a></p>
<ul>
<li>Set environment variable <code>QT_DEBUG_PLUGINS=1</code> in case better diagnostic information.</li>
<li>Purely at a guess, is the QMYSQL plugin built so it can be linked by your compiler/linker (e.g. it is not MSVC or a different bit-ness)?</li>
<li>Verify whether there are further DLLs which might need copying, perhaps extra dependencies --- use a dependency walker on the top-level QMYSQL DLL.</li>
<li>See whether it works if you compile for release.</li>
<li>Verify temporarily whether the QSQLITE does load.</li>
</ul>
]]></description><link>https://forum.qt.io/post/832168</link><guid isPermaLink="true">https://forum.qt.io/post/832168</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 29 Sep 2025 13:12:03 GMT</pubDate></item></channel></rss>