Solved How to build qt 5.13.1 mysql 8.0 driver?
-
Good evening.
Installed qt with mingw and mysql with c++ connector all x64.
Trying to build mysql driver....\src\plugins\sqldrivers>qmake -- MYSQL_INCDIR=C:/MySQL/ConnectorC++8.0/include MYSQL_LIBDIR=C:/MYSQL/ConnectorC++8.0/lib64
and it gives me:
... MySql......no
And if ignore this "no" and try to build it builds only sqlite and odbc drivers.
What should I do to build that plugin?
PS changing ways to lib and include in MySQL/MySQLServer8.0 did no changes. -
I don't know. Just installed all that things from mysql community server installer.
That was really strange...
I searched manually:- deleted folder config.tests
- cleared files config.summary, config.opt, config.log, config.cache.
Then I qmake include and lib from MYSQLSERVER8.0 folder...
And that works... Now I'm connected with my mysql database...
-
Hi and welcome to devnet,
Is that library also built with MinGW ?
-
TY and I'm trying to do this with console "Qt 5.13.1 (MinGW 7.3.0 64-bit)" from my start/qt menu.
PS Before I didn't built anything. Just install from qt community installer and mysql community server installer. Then start that "Qt 5.13.1 (MinGW 7.3.0 64-bit)" (from admin too) and trying to do that code what instructions are giving me.
PS how it was:- install qt and mysql (with c++ connector)
- start->qt->Qt 5.13.1 (MinGW 7.3.0 64-bit) from admin
- cd [way to plugins/sqldrivers]
- that qmake... things
- summary:
qt sql drivers:
...
mysql...no
odbc...yes
...
-
@Gh0sTG0 said in How to build qt 5.13.1 mysql 8.0 driver?:
ConnectorC++8.0
My question was related to that library.
-
I don't know. Just installed all that things from mysql community server installer.
That was really strange...
I searched manually:- deleted folder config.tests
- cleared files config.summary, config.opt, config.log, config.cache.
Then I qmake include and lib from MYSQLSERVER8.0 folder...
And that works... Now I'm connected with my mysql database...