If you are using Qt version installed by your distrib package manager, just do :
yum search qt | grep -i mysql
yum search qt | grep -i mysql
To copy to clipboard, switch view to plain text mode
It should return a few lines, in my REL the line you are looking for is :
qt4-mysql.x86_64 : MySQL drivers for Qt's SQL classes
qt4-mysql.x86_64 : MySQL drivers for Qt's SQL classes
To copy to clipboard, switch view to plain text mode
But the package name change from one distrib to an onother, you have to find yours in the list.
Install the package :
yum install qt4-mysql
yum install qt4-mysql
To copy to clipboard, switch view to plain text mode
Then everything should works.
If you are using your own built Qt lib, check during the configure if the plugin for mysql is selected, if not check the package mysql is installed with yum (it's the client for mysql), and redo configure.
Bookmarks