hey,
I notice you said to use odbc to connect to mysql using the odbc connector. Can you tell me the exact steps to do it? What I did was
QSqlDatabase db = QSqlDatabase::addDatabase("QODBC", "PLC");
if (!db.open()) {
QMessageBox::critical(0, QObject::tr("Database Error"),
db.lastError().text());
return false;
}
Where PLC is my DSN. However, I am getting this error -
[Microsoft][ODBC Driver Manager] Data Source name not found and no default driver specified QODBC3: Unable to Connect.