the error looks like:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
let's find out the solution step by step:
1. open terminal, turn to sqldrivers directory, here ours is:
/opt/Qt5.5.1/5.5/gcc_64/plugins/sqldrivers
2. find out what libqsqlmysql.so depends on by typing:
ldd libqsqlmysql.so
then, if you find something not found, then you need to solve, here are something not found in our case:
libmysqlclient_r.so.16 => not found
libssl.so.10 => not found
libcrypto.so.10 => not found
3. solve libmysqlclient_r.so.16 => not found
This part cost me most of time.
first, we need to download libmysqlclient.so.16 from http://files.directadmin.com/services/debian_5.0_64/libmysqlclient.so.16
then put it into /usr/lib/x86_64-linux-gnu,
after that we copy it and rename as libmysqlclient_r.so.16
4. solve libssl.so.10 => not found and libcrypto.so.10 => not found
Lets make sure that you have your SSL installed and updated:
sudo apt-get update
sudo apt-get install libssl1.0.0 libssl-dev
Now lets fix the naming of the file by creating a link:
cd /lib/x86_64-linux-gnu
sudo ln -s libssl.so.1.0.0 libssl.so.10
sudo ln -s libcrypto.so.1.0.0 libcrypto.so.10
And finally, lets inform the developer about this flaw so he can fix it :)