@SGaist Hello! I'm building a second app using QMySQL database, the first app (the one about this topic) works perfectly as expected, but the second tells me that the driver isn't loaded.

QSqlDatabase: MYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7

I added mysql dll dir in PATH environment variable, but same problem stay the same..

Have you an idea please?

EDIT: nevermind, I'm just stupid, I forgot the "Q" before "MYSQL" call in code line:

QSqlDatabase db = QSqlDatabase::addDatabase("MYSQL");

Now it's:

QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");

and strangely, works better..

Again, thank you all for your help!