I'm just realizing that what I was trying to do was maybe nonsense : I was trying to pass on to the mysql server a value for the client on which my Qt program is running i.e. I was trying to "deceive" the server. And I could understand then that there would be no such method in QSqlDatabase (and that you couldn't understand my question initially).
download the Qt Sources, e.g current the sources available are qt-everywhere-opensource-src-5.5.1, After extracting
then make sure you call qmake from Qt5.5, for this purpose you can type the complete path of the qmake.
then use make and make install.
I hope it will help you.
You're understanding correctly...
Well I just had to build it on my laptop for QT 5.51 because the current version of the driver wasn't working with mysql 5.5. It was quite a simple process...
I wanted to try my program on a remote server, noticed the driver wasn't present at all, so just thought I'll build it myself to be sure it will be compatible with the version of mysql installed.
You're right, I've found the package in my distribution and it is working well. (libqt5sql5-mysql on debian jessie)
well it does call the API directly so its very close.
I was lazy and just made script to ask and run my exe.
The AutoIt compiler can make exe from file so no script runtime is needed and its very small.
But yeah, it should be fairly easy to convert since its fairly normal syntax and uses both API and
types a c++ version would.
Please search the forum about that matter. It's been answer many times already. From your description, you have a newer version the MySQL libraries than the one that have been used to build the plugin. Likely version 18 instead of 16. The fast way is to download Qt's sources and build the plugin yourself like described in the documentation.