static bool createConnect(QString basename){ QSqlDatabase db = QSqlDatabase::addDatabase("QIBASE"); db.setDatabaseName(basename); db.setUserName("sysdba"); db.setPassword("masterkey"); if (!db.open()) { QMessageBox::critical(0,QObject::tr("DataBase Error"),db.lastError().driverText()); qDebug() << db.lastError() << db.lastError().driverText(); return false; }else { return true; } }
gds_db 3050/tcp # gds_dbgds_db 3050/udp # gds_db