![]() Tell qt-cmake where to find the MySQL / MariaDB header files and shared libraries (here it is assumed that MySQL / MariaDB is installed in /usr/local) and build: Depending on your Linux distribution, you may need to install a package which is usually called "mysql-devel" or "mariadb-devel". You need the MySQL / MariaDB header files, as well as the shared library libmysqlclient. How to Build the QMYSQL Plugin on Unix and macOS The path name of the directory that contains files containing certificate revocation listsįor more detailed information about the connect options please refer to the mysql_options() MySQL documentation. The path name of the file containing certificate revocation lists The list of permissible ciphers for SSL encryption MYSQL_OPT_SSL_CIPHER / SSL_CIPHER (deprecated) The path name of the directory that contains trusted SSL CA certificate files MYSQL_OPT_SSL_CAPATH / SSL_CAPATH (deprecated) The path name of the Certificate Authority (CA) certificate file The path name of the client public key certificate file MYSQL_OPT_SSL_CERT / SSL_CERT (deprecated) The path name of the client private key file The value can be a combination of 'TLSv1' ,' TLSv1.1', 'TLSv1.2' or 'TLSv1.3' depending on the used MySQL server version. The security state to use for the connection to the server: SSL_MODE_DISABLED, SSL_MODE_PREFERRED, SSL_MODE_REQUIRED, SSL_MODE_VERIFY_CA, SSL_MODE_VERIFY_IDENTITY.Ī list of protocols the client permits for encrypted connections. Set to 1 to enable the support for local LOAD_DATA, disabled if not set or 0 The timeout in seconds for each attempt to write to the server The timeout in seconds for each attempt to read from the server TRUE or 1: Automatically reconnect after connection lossįALSE or 0: No automatic reconnect after connection loss (default) Specified the shared memory segment name to use Specifies the socket or named pipe to use, even it's called UNIX_SOCKET it can also be used on windows ![]() MYSQL_PROTOCOL_TCP: use tcp connection (ip/hostname specified through setHostname()) MYSQL_PROTOCOL_SOCKET: connect through a socket specified in UNIX_SOCKET MYSQL_PROTOCOL_PIPE: connect through a named pipe specified in UNIX_SOCKET MYSQL_PROTOCOL_MEMORY: connect through shared memory specified in MYSQL_SHARED_MEMORY_BASE_NAME ![]() If set, send found rows instead of affected rows If set, switches to compressed protocol after successful authentication ![]() Build files have been written to: C: /build -qt6 -sqldrivers For example, you can do this as follows, to locate MySQL:Ĭ:\ Qt\ 6.0.0\mingw81_64\bin\qt -cmake -G Ninja C:\ Qt\ 6.0.0\Src\qtbase\src\plugins\sqldrivers -DMySQL_INCLUDE_DIR = "C:\mysql-8.0.22-win圆4\include" -DMySQL_LIBRARY = "C:\mysql-8.0.22-win圆4\lib\libmysql.lib" -DCMAKE_INSTALL_PREFIX = "C:\Qt\6.0.0\mingw81_64" this is required for PostgreSQL and SQLite). You should prefer this method if module needs to set properties for the provided target libraries (e.g. In some cases it's more convenient to use CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH variables to locate required libraries. This is especially useful if the package provides its own set of system libraries that should not be recognized by the build routine. When you configure drivers in the manner described above, CMake skips any dependency checks and uses the provided paths as is.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |