Qt-interest Archive, March 2002
Re: Mysql Datatable don't work:(
Message 1 in thread
Are you sure the code is there to connect to the database?
-Phil
Hi @ all,
I has created an DataTable with the designer. That works fine.
I will see the data from the Mysql database, when I had clicked the
'Preview' in the Menubar.
But after compiling the source, I get an error:
//------------->
Warning: QSqlDatabaseManager unable to find database
qt_sql_default_connection
QSqlCursor::setName: unable to build record, does 'user' exist?
QSqlRecord::position: unable to find field User
QSqlRecord::position: unable to find field Host
QSqlRecord::position: unable to find field Password
QSqlRecord::position: unable to find field Select_priv
QSqlRecord::position: unable to find field Insert_priv
QSqlRecord::position: unable to find field Update_priv
//-------------->
Why can i see the database data in the designer , but not after
compiling?
Any hints?
GreetingX
Andre
--
[ signature omitted ]
Message 2 in thread
From: Philip Dicke <Philip.Dicke@raytheon.com>
> Are you sure the code is there to connect to the database?
No, I think that could be the problem. Yesterday, I' had done some
tests with
the QT examples, the examples still works fine.
In the examples are more code as the designer & uic produce ...
So on, I don't use the designer for getting database data. Now I
will do this with
"hand".
greetingX
Andre
> I has created an DataTable with the designer. That works fine.
> I will see the data from the Mysql database, when I had clicked
the
> 'Preview' in the Menubar.
>
> But after compiling the source, I get an error:
>
> file://------------->
> Warning: QSqlDatabaseManager unable to find database
> qt_sql_default_connection
> QSqlCursor::setName: unable to build record, does 'user' exist?
> QSqlRecord::position: unable to find field User
> QSqlRecord::position: unable to find field Host
> QSqlRecord::position: unable to find field Password
> QSqlRecord::position: unable to find field Select_priv
> QSqlRecord::position: unable to find field Insert_priv
> QSqlRecord::position: unable to find field Update_priv
> file://-------------->
>
> Why can i see the database data in the designer , but not after
> compiling?
>
> Any hints?
>
> GreetingX
>
> Andre
>
> --
> List archive and information: http://qt-interest.trolltech.com
>
>
>
>