Fedora Linux Support Community & Resources Center
  #1  
Old 10th June 2004, 02:50 PM
multsyh Offline
Registered User
 
Join Date: Jun 2004
Location: Hue VN
Age: 34
Posts: 8
Question Connect database mysql by QTdedign???

I coding on QTdesign but I can't connect database mysql. When I connect by qtdesign then error "Driver not loader". I used Mysql 3.x and use Driver "QMYSQL3" and I sure runing mysql. Anyone help me plz. Thanks
I try coding but I can't:
void MyForm:onnectDBTry()
{
// create the default database connection

QSqlDatabase *defaultDB = QSqlDatabase::addDatabase( "QMYSQL3" );

if ( ! defaultDB ) {
QMessageBox::information(this,"Application name",defaultDB->lastError().driverText() );
return;
}
defaultDB->setDatabaseName( "test" );
defaultDB->setUserName( "multsyh@hueitech" );
defaultDB->setPassword( "1234567890" );
defaultDB->setHostName( "hueitech" );
if ( ! defaultDB->open() ) {
QMessageBox::information(this,"Application name", "Database not open" );
return;
}
QMessageBox::information(this,"Application name", "Connect success!");
}

Last edited by multsyh; 14th June 2004 at 09:57 PM.
Reply With Quote
  #2  
Old 11th June 2004, 04:28 PM
multsyh Offline
Registered User
 
Join Date: Jun 2004
Location: Hue VN
Age: 34
Posts: 8
why don't question anyone?

why don't question anyone for multsyh
Reply With Quote
Reply

Tags
connect, database, mysql, qtdedign

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code won't connect into MySQL database through ODBC DSN Frustant Using Fedora 4 3rd November 2008 03:50 PM
Connect PHP to an SQL database BenOut Programming & Packaging 5 7th May 2008 07:53 PM
need help getting mysql database crazyone Servers & Networking 5 9th January 2008 02:10 PM
How to connect to mysql database in linux with C linuxpcmancn Programming & Packaging 3 25th December 2007 07:25 AM
Browser can't connect MySQL database Artemis Servers & Networking 10 13th April 2005 07:27 PM


Current GMT-time: 21:10 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat