Doc: List alternative ways to get the MySQL C Connector
The C Connector does not appear to be offered as a component in the MySQL 8.0.19.0 installer. Task-number: QTBUG-82187 Change-Id: I4b1ef83cca68e7bf6dd032ba35c0784354d7fed3 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
parent
c6dd2e2367
commit
e8793476ac
@ -170,28 +170,31 @@
|
|||||||
|
|
||||||
\section3 How to Build the QMYSQL Plugin on Windows
|
\section3 How to Build the QMYSQL Plugin on Windows
|
||||||
|
|
||||||
You need to get the MySQL installation files (e.g.
|
Get the \l{https://dev.mysql.com/downloads/installer/}{MySQL installer} (e.g.
|
||||||
\l {https://dev.mysql.com/downloads/installer/}{mysql-installer-web-community-8.0.18.0.msi}).
|
\e{mysql-installer-web-community-8.0.18.0.msi}). Run the installer,
|
||||||
Run the installer,
|
select "Custom" installation, and install the MySQL C Connector
|
||||||
select custom installation and install the MySQL C Connector
|
|
||||||
which matches your Qt installation (x86 or x64).
|
which matches your Qt installation (x86 or x64).
|
||||||
After installation make sure that the needed files are there:
|
After installation check that the needed files are there:
|
||||||
\list
|
\list
|
||||||
\li \c {<MySQL dir>/lib/libmysql.lib}
|
\li \c {<MySQL dir>/lib/libmysql.lib}
|
||||||
\li \c {<MySQL dir>/lib/libmysql.dll}
|
\li \c {<MySQL dir>/lib/libmysql.dll}
|
||||||
\li \c {<MySQL dir>/include/mysql.h}
|
\li \c {<MySQL dir>/include/mysql.h}
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
Build the plugin as follows (here it is assumed that the MySQL
|
\note As of MySQL 8.0.19, the C Connector is no longer offered as a standalone
|
||||||
C Connector is installed in
|
installable component. Instead, you can get \c{mysql.h} and \c{libmysql.*} by
|
||||||
|
installing the full MySQL Server (x64 only) or the
|
||||||
|
\l{https://downloads.mariadb.org/connector-c/}{MariaDB C Connector}.
|
||||||
|
|
||||||
|
Build the plugin as follows (here it is assumed that \c{<MySQL dir>} is
|
||||||
\c{C:/Program Files/MySQL/MySQL Connector C 6.1}):
|
\c{C:/Program Files/MySQL/MySQL Connector C 6.1}):
|
||||||
|
|
||||||
\snippet code/doc_src_sql-driver.qdoc 5
|
\snippet code/doc_src_sql-driver.qdoc 5
|
||||||
|
|
||||||
If you are not using a Microsoft compiler, replace \c nmake with \c
|
If you are not using a Microsoft compiler, replace \c nmake with \c
|
||||||
mingw32-make in the line above.
|
mingw32-make above.
|
||||||
|
|
||||||
When you distribute your application, remember to include libmysql.dll
|
When you distribute your application, remember to include \e libmysql.dll
|
||||||
in your installation package. It must be placed in the same folder
|
in your installation package. It must be placed in the same folder
|
||||||
as the application executable. \e libmysql.dll additionally needs the
|
as the application executable. \e libmysql.dll additionally needs the
|
||||||
MSVC runtime libraries which can be installed with
|
MSVC runtime libraries which can be installed with
|
||||||
|
Loading…
Reference in New Issue
Block a user