use mysql embedded with qt?
问题 I am trying to use mysql embedded with QT. I already have a Qt mysql plugin linked against mysqld. The plugin loads fine the embedded db but QT does not have easy ways to setup embedded options like dataDir. I saw here: http://doc.qt.io/archives/qt-4.7/qsqldatabase.html#addDatabase-2 that I can initiate the QT sql driver (QMYSQLDriver) with the necessary embedded parameters so I did: #include <QtCore/QCoreApplication> #include <QtSql> #include "QMYSQLDriver" #include <mysql.h> int main(int