Yes, but probably not out of the box.
Do you have /usr/local/mysql/lib in your linker path?i have compiled the drivers using following qmake command :
qmake -0 Makefile "INCLUDEPATH+=/usr/local/mysql/include" "LIBS+=-L/usr/local/mysql/lib" mysql.pro
Are you sure it is the same driver you compiled? Did you install the driver? Compiling it is not enough, it should be put in an appropriate place for Qt to find it.the driver QMYSQL3 is shown in the driver list in project->database connection.
Can you present the code here?i have written a small code to setup the database connection.
Make sure the plugin tries to link against the proper mysqlclient library. You can do that using ldd.but when i try to run the exe from the shell it gives the following error :
[root@RedhatLinux database setup]# ./dbsetup
./dbsetup: relocation error: /usr/local/qt/plugins/sqldrivers/libqsqlmysql.so: undefined symbol: mysql_server_init
Bookmarks