Hello,
I've a problem with MySql database driver.
My Qt version is 4.5.2 Commercial and my OS is Windows 7 Ultimate Ed.

First of all I want to say that I already completed the procedure to build MySql plugin manually as reported in Qt Documentation. In fact now I can see qsqlmysql4.dll and qsqlmysqld4.dll libraries in $(QTDIR)\plugins\sqldrivers folder.

My problem is I m not able to load MySql driver only in release version.
If I try to load the libraries manually through the command
Qt Code:
  1. QLibrary mysqlLib("qsqlmysql4");
  2.  
  3. int ret = mysqlLib.load();
To copy to clipboard, switch view to plain text mode 
The value of varibale ret is 1 as I expected. Both in release and debug version.

After doing it, if I try to control if the driver is available like that:
Qt Code:
  1. if (QSqlDatabase::isDriverAvailable ("QMYSQL") == false)
  2. {
  3. box.setText("Error: driver QMYSQL not available\n");
  4. box.exec();
  5. }
To copy to clipboard, switch view to plain text mode 

I got the Message Box with the Error message only in release mode.
I don't understand why.
Somebody can help me?

Thank you