<?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[How to install MySQL to (or with) Static Version]]></title><description><![CDATA[<p dir="auto">Dear all,</p>
<p dir="auto">i know there are some topics about this already, however after two days of trying all i could (mainly I was not aware what Im doing, so maybe i did it wrong), therefore if I can kindly ask you not to link me to other similar topics, please try to give me real example of what to try...</p>
<p dir="auto">So at the beginning, I have build stativ version of MinGW 32b, using the script from <a href="https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> and using batch file:</p>
<pre><code>PowerShell -NoProfile -ExecutionPolicy Bypass -Command "&amp; 'C:\Qt\windows-build-qt-static.ps1' -QtSrcUrl 'c:\Downloads\From Browser\qt-everywhere-src-5.12.3.zip' -QtStaticDir 'C:\Qt' -MingwDir 'C:\Qt\Tools\mingw730_32' -QtVersion '5.12.3_Static'
</code></pre>
<p dir="auto">basicaly I followed this guide:<br />
<a href="https://www.youtube.com/watch?v=lwX_urJJOf8" target="_blank" rel="noopener noreferrer nofollow ugc">youtube video</a></p>
<p dir="auto">but now I am finding the MYSQL driver is not available in this new static version:<br />
<strong>QSqlDatabase: available drivers: QSQLITE QODBC QODBC3</strong></p>
<p dir="auto">I have tried to install new static version modifying the batch file:</p>
<pre><code>PowerShell -NoProfile -ExecutionPolicy Bypass -Command "&amp; 'C:\Qt\windows-build-qt-static.ps1' -QtSrcUrl 'c:\Downloads\From Browser\qt-everywhere-src-5.12.3.zip' -QtStaticDir 'C:\Qt' -MingwDir 'C:\Qt\Tools\mingw730_32' -QtVersion '5.12.3_Static_MySQL' -sql-qt-mysql -l mysql -I C:\MySQL\include -L C:\MySQL\lib
</code></pre>
<p dir="auto">however Im getting error:<br />
<strong>C:\Qt\windows-build-qt-static.ps1 : A parameter cannot be found that matches parameter name 'sql-mysql'.</strong><br />
(i have tride to modify this command with many variants i couild find online (-sql-qt-mysql, -mysql, ...) but still same error...</p>
<p dir="auto">So bck to my question,<br />
please give me suggestion how to install mysql driver into this stable version, or even when it would mean to install the stable version again with mysql in it, then its fine...</p>
<p dir="auto">Thank you for every single suggestion for me to try, cause ive been trying to figure out last 3 days with no luck</p>
]]></description><link>https://forum.qt.io/topic/102577/how-to-install-mysql-to-or-with-static-version</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 04:34:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/102577.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 May 2019 13:16:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to install MySQL to (or with) Static Version on Fri, 10 May 2019 21:29:18 GMT]]></title><description><![CDATA[<p dir="auto">You should also read the <a href="https://doc.qt.io/qt-5/sql-driver.html#qmysql" target="_blank" rel="noopener noreferrer nofollow ugc">MySQL build guide in Qt's documentation</a>. They show the syntax you should use.</p>
]]></description><link>https://forum.qt.io/post/528271</link><guid isPermaLink="true">https://forum.qt.io/post/528271</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 10 May 2019 21:29:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to install MySQL to (or with) Static Version on Fri, 10 May 2019 04:31:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/528090">How to install MySQL to (or with) Static Version</a>:</p>
<blockquote>
<p dir="auto">you have to get the packages for them, hence you only have the <code>-sql-XXX</code> options.</p>
</blockquote>
<p dir="auto">Thanks, this was what I was realy expectiong, but I was hoping to guide me up a little, because what I have tried is to follow this guide:<br />
<a href="https://www.seppemagiels.com/blog/create-mysql-driver-qt5-windows" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.seppemagiels.com/blog/create-mysql-driver-qt5-windows</a><br />
but durring that I have few errors when opening <a href="http://mysql.pro" target="_blank" rel="noopener noreferrer nofollow ugc">mysql.pro</a> in Qt. But following <a href="https://www.youtube.com/watch?v=n8GzbdCkby8" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> guide i have only one error of <strong>Project ERROR: Library 'mysql' is not defined.</strong> which according to <a href="https://bugreports.qt.io/browse/QTBUG-58372" target="_blank" rel="noopener noreferrer nofollow ugc">bug report</a> it should be fixed by commenting line QMAKE_USE += mysql then no error followed but dlls were not created anyway :(</p>
]]></description><link>https://forum.qt.io/post/528107</link><guid isPermaLink="true">https://forum.qt.io/post/528107</guid><dc:creator><![CDATA[shokarta]]></dc:creator><pubDate>Fri, 10 May 2019 04:31:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to install MySQL to (or with) Static Version on Thu, 09 May 2019 21:23:17 GMT]]></title><description><![CDATA[<p dir="auto">For SQLite you can choose whether you use Qt's bundled version or the one from your system but for the other backends, you have to get the packages for them, hence you only have the <code>-sql-XXX</code> options.</p>
]]></description><link>https://forum.qt.io/post/528090</link><guid isPermaLink="true">https://forum.qt.io/post/528090</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 09 May 2019 21:23:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to install MySQL to (or with) Static Version on Thu, 09 May 2019 04:47:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
Hello,<br />
its from the link above, contains <a href="https://sourceforge.net/p/qtlmovie/code/ci/v1.2.16/tree/build/windows-build-qt-static.ps1?format=raw" target="_blank" rel="noopener noreferrer nofollow ugc">this</a>,<br />
i have only modified line 167 and updated sql parametr to "qt-sqlite" as suggested by every topic and it can be seen on video (otherwise if not done, it gets an error at the beginning that sqlite parameter is unknown)</p>
]]></description><link>https://forum.qt.io/post/527870</link><guid isPermaLink="true">https://forum.qt.io/post/527870</guid><dc:creator><![CDATA[shokarta]]></dc:creator><pubDate>Thu, 09 May 2019 04:47:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to install MySQL to (or with) Static Version on Wed, 08 May 2019 21:33:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What does windows-build-qt-static.ps1 contain ?</p>
]]></description><link>https://forum.qt.io/post/527843</link><guid isPermaLink="true">https://forum.qt.io/post/527843</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 08 May 2019 21:33:17 GMT</pubDate></item></channel></rss>