You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Wednesday, July 6th 2011, 9:13am

QMySQL Plugin

hey :)
I'm trying now for several days with Qt SDK to get access to a MySQL database.
I know I need to create a plugin with this code:
-------------------------------------------------- ------------------------------
qmake "INCLUDEPATH + = C: \ MySQL \ include" "LIBS + = C: \ MySQL \ MySQL Server <version> \ lib \ opt \ libmysql.lib"
-------------------------------------------------- ------------------------------

But I always get the message:
--- Can not find file: .---

I use Qt version 4.7.3
and MySQL 5.1
Windows 7 64 bit

would be glad if someone could help me :)

Sincerely, Jan Merkschien


Friday, July 22nd 2011, 10:21pm

Hi Jan,

I have been working on getting MySQL to work on Fedora for couple of days. There are three plugin directories on my system and of course the qmysqllibrary was not in the right one. I used "qDebug() << app.libraryPaths();" to find out where the program was looking for the library.

Hope this helps,