Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, March 2008
QSQL database problem


Message 1 in thread

Hi
I am working in windows platform and qt3.3.2
 I have installed mysql server 5.0..I am trying to add database
QMYSQL3. but it showing error : QMYSQL3 driver not loaded. available
drive:

int main( int argc, char *argv[] )
 {
    QApplication app( argc, argv, FALSE);

    QSqlDatabase *defaultDB = QSqlDatabase::addDatabase( "QMYSQL3" );
  defaultDB->setDatabaseName( "FDS_DB" );
    defaultDB->setUserName( "root" );
    defaultDB->setPassword( "root" );
    defaultDB->setHostName( "localhost" );

    return 0;
 }
-- 
 [ signature omitted ] 

Message 2 in thread

On Thursday 20 March 2008 07:57:36 Mautushi Paul wrote:
> Hi
> I am working in windows platform and qt3.3.2
>  I have installed mysql server 5.0..I am trying to add database
> QMYSQL3. but it showing error : QMYSQL3 driver not loaded. available
> drive:

you need to compile the mysql plugin.
http://wiki.qtcentre.org/index.php?title=Building_the_QMYSQL_plugin_on_Windows_using_MinGW


-- 
 [ signature omitted ]