Why is not the MySql driver loaded when running my application?

You need to make sure that everything has the same configuration. Make sure you have built your application, Qt and your plugin with the same configuration (i.e. debug vs release). Also, you need to make sure you have set your PATH environment variable to find the relevant MySql dll so that it can be found when the application runs. Alternatively, you can put the MySql dll (e.g libmysql.dll) in the same folder as the Qt dlls in yourQtDirectory/bin.

1 comment

November 9, 2011

Picture of Erico Fabiano Erico Fabiano

Lab Rat

I’m having a problem between the integration of Qt with the Postgres database, follow every step of the Database Drivers QtSQL, but when I run an application returns the following message: Server does not support SSL, but SSL was required QPSQL: Unable to connect.
I’m with Qt Creator 2.3.1 Based on Qt 4.7.4, Postgres 9.1. and Win 7.

Thank you.

Erico Fabiano

Write a comment

Sorry, you must be logged in to post a comment.