Hello folks,
I've installed the mysql driver plugin on winXP after this guide:
http://wiki.qtcentre.org/index.php?t...ws_using_MinGW
After this installation I've cleaned the plug-in cache. But it dosn't work. I have allways the error, driver not loaded.
Here is the code for the mysql connection:
db.setHostName(hostnameLineEdit->text());
db.setUserName(usernameLineEdit->text());
db.setPassword(passwordLineEdit->text());
db.setDatabaseName(dbnameLineEdit->text());
if (!db.open())
QMessageBox::critical(0, tr
("Error"),
QString("The error:\n%1").
arg(db.
lastError().
text()));
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName(hostnameLineEdit->text());
db.setUserName(usernameLineEdit->text());
db.setPassword(passwordLineEdit->text());
db.setDatabaseName(dbnameLineEdit->text());
if (!db.open())
QMessageBox::critical(0, tr("Error"), QString("The error:\n%1").arg(db.lastError().text()));
To copy to clipboard, switch view to plain text mode
Under linux all works fine. Whats the problem with windows?
so long
jd
Bookmarks