问题描述
- ubuntu下qt5.6连接mysql出现 QMYSQL driver not loaded
-
如题并且qt带的mysql驱动是在的 问题出在了mysql动态库 想问一下怎么解决
解决方案
QSqlDatabase:?QMYSQL?driver?not?loaded
QSqlDatabase:?available?drivers:?QSQLITE
解决方法,先看下是否已经安装了libqsqlmysql.so
[test1@localhost?~]$?locate?libqsqlmysql.so
/var/cache/abrt-di/usr/lib/debug/usr/lib/......
答案就在这里:Qt连接MySQL出现QSqlDatabase: QMYSQL driver not loaded
解决方案二:
http://linqinong.blog.163.com/blog/static/4804998520107269587791/
时间: 2025-01-05 04:47:54