Mysql can not work in other device without QT application
-
I have a big problem here. I have installed the mysql driver and the program has been built and run in the Linux platform, everything is okay. However, when I moved the program to other embedded device which is without QT application, and QSqlDatabase::lastError shows "Driver not loaded Driver not loaded". I have put the file "libqsqlmysql.so" which is from Linux platform in the embedded device, but it can't work. Could anyone can help me solve this problem? Thanks.
-
Have you deployed the MySql client libraries for the target platform? The Qt MySql plugin you have deployed is built on top of the MySql libraries.
-
Sorry, it doesn't make sense to me...maybe explain more detail. Thanks for your help a lot.
-
Hi and welcome to devnet,
Like your application is linked to Qt, libqsqlmysql.so is linked against the MySql client library. You need to have it on your target also