The TDatabase component should have a property named "LoginPrompt". You
need to set that property to FALSE.
1) Drop a TDatabase on your form or datamodule
2) Set the TDatabase.DatabaseName property
3) Set the TDatabase.AliasName property
4) Set the TDatabase.LoginPrompt property to False
5) Drop a TQuery on your form or datamodule
6) Set the TQuery.DatabaseName to the name you used in #2
These are some simple steps you can follow to connect a TQuery to a
TDatabase. Setting the LoginPrompt to false will prevent the displaying
of the Username/Password dialog. However, you'll need to set the username
and password somewhere (the DSN or my.cnf or the TDatabase.Params.
On Tue, 11 Sep 2001, Miguel Enriquez Alvarado wrote:
> hi all
> i use delphi 3 and mysql, i can connect to mysql since a component
> Tquery (i see the data), but my question is:
>
> how remove the box where ask me the username and password, when run my
> app, anybody recommned me the component Tdatabase but i not know how
> use, anyone can help me?
>
>
> thanks
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php