Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Ubuntu 32bit QT5.4.2 cannot connect to mysql
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
QSqlDatabase: QMYSQL driver not loaded
64bit QT can make drivers easily and replace ~/Qt5.4.2/5.4/gcc/plugins/sqldrivers/libqsqlmysql.so
but i dont know how to remake 32bit QMYSQL driver and replace libqsqlmysql.so
someone can help me? Thank you so much.
Hi and welcome to devnet,
The procedure is always the same, this time you have to make sure you have all development dependencies in 32bit.
yes ,i have all development dependencies in 32bits.
After cd :~/Qt5.4.2/5.4/gcc/plugins/sqldrivers and ldd libqsqlmysql.so
I find libmysqlclient_r.so.16 => not found
I search the internet. And there are someone can solve this problem by make QMYSQL driver and replace this file:~/Qt5.4.2/5.4/gcc/plugins/sqldrivers/libqsqlmysql.so
But i have a 32bit QT, there are something different.
No there's not. re-build the plugin with your installed MySQL development package.
OK I'll try.Thank U so much!