Hello There.
I Have an Database from 1Blue, with the table "test"
now i Can connect without problems, but db.tables() says that there are no tables. Why?
My Code (Zensored)
db.setHostName("mysql12.1blu.de");
db.setDatabaseName("***********");
db.setUserName("**********");
db.setPassword("**********");
bool ok = db.open();
qDebug() << db.tables();
qDebug() << db.isValid();
qDebug() << db.isOpen();
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db.setHostName("mysql12.1blu.de");
db.setDatabaseName("***********");
db.setUserName("**********");
db.setPassword("**********");
bool ok = db.open();
qDebug() << db.tables();
qDebug() << db.isValid();
qDebug() << db.isOpen();
To copy to clipboard, switch view to plain text mode
And the Return:
()
true
true
So why there are no tables? In phpMyAdmin there are tables!
I hope someone can help me.
MFG feuerball11
PS: Sorry for bad english
Bookmarks