[Qt-interest] sql error in different machines...
Christopher Rasch-Olsen Raa
christopher at technophile.info
Tue Aug 11 16:56:28 CEST 2009
You did not mention qsqlmysql4.dll. where did you put that. Again; as we've
asked: what does the pluginsystem say?
--
Christopher
Tirsdag 11 august 2009 15:12:54 skrev berkan kısaoğlu :
> Yes, there is something wrong , but i dont think it is with the plugin.
> * I have compiled the .dll's relevant on my own computer. then i carried
> the dlls to another computer.( QtCored4.dll, QtGuid4.dll, QtSqld4.dll and
> mingwm10.dll )
> * I have build the plugin/mysql driver on my computer
> On the other computer, all i do is,
> * installing another mysql database, with the same version ( both my driver
> dll and server)
> after i installed mysql database, with the same version.
> * I created the databases as the same on my own computer.
> * then i click the executable , i can not connect.
>
> "
> QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
>
> db.setHostName(strlist[0]);
>
> db.setDatabaseName(strlist[1]);
>
> db.setUserName(strlist[2]);
>
> db.setPassword(strlist[3]);
>
> bool ok = db.open();
>
> if(ok){
>
> QSqlDatabase defaultDB = QSqlDatabase::database(); //database baglantim
> kuruldu ona isim verdim.
>
> setupUi(this); // this sets up GUI
>
> }
>
> else{
>
> // give error message
>
> }
>
> "
>
> i have smth like that.
>
> my executable and dll files are in the same directory, and the application
> always enters the 'else' state.
>
>
> what can be ? i will look the db.lastError()
> although i have the dll file, missing driver can be a reason ?
>
> thanks in advice
>
>
>
> On Tue, Aug 11, 2009 at 3:50 PM, Christopher Rasch-Olsen Raa <
>
> christopher at technophile.info> wrote:
> > On Tuesday 11 August 2009 14:53:49 berkan kısaoğlu wrote:
> > > I have an executable compiled on my windows computer.
> > > But, when i try to execute on different windows machines, i can not
> >
> > connect
> >
> > > to the database.
> > > i have all my dll's, files etc...
> > > but i can not establish a connection.
> > >
> > > what can be the reason ?
> >
> > You have done something wrong when compiling the plugin perhaps? Try to
> > look
> > at what Qt's pluginsystem tells you when the MySQL-plugin is loaded.
> >
> > --
> > Christopher
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list