ubuntu下Qt链接MySQL: QMYSQL driver not loaded(不用重新编译源码)
先切换到qt数据库驱动目录即:qt安装目录下的gcc_64/plugins/sqldrivers,然后
ldd libqsqlmysql.so
若libmysqlclient.so.18 not found,下载libmysqlclient.so.18即可,下载地址:https://launchpad.net/ubuntu/xenial/amd64/libmysqlclient18/5.6.25-0ubuntu1,然后
dpkg -i libmysqlclient18_5.6.25-0ubuntu1_amd64.deb
亲测可用,