How to deploy my application using mysql plugin (Windows) ?



  • Hello here!
    I have an application working properly on my QtCreator, and now I want to deploy it to others computers.

    I added a few dlls (QtCore4.dll, QtSql4.dll...) in the release/ folder (where my .exe is) and now my application start and send me this error: (Driver Not Loaded).

    I can read "here":http://doc.qt.nokia.com/latest/deployment-windows.html#qt-plugins that I need to put the plugin in a specific folder.

    I tried this folder structure:
    @│ WontokPunchClock.exe
    │ mingwm10.dll
    │ libgcc_s_dw2-1.dll
    │ QtCore4.dll
    │ QtGui4.dll
    │ QtNetwork4.dll
    │ QtSql4.dll
    │ libmysql.dll

    └───plugins
    └───sqldrivers
    qsqlmysql4.dll@
    But it's still the same.

    Any idea ?
    Thanks



  • It should work if you drop the plugins directory.

    Edit:
    That is: put the sqldrivers directory at the same level as the .exe file and the Qt .dll files.



  • Thanks you very much, I'll try Thursday morning!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.