OnLogin event

Previous  Top  Next

See Also Properties Methods Events Example
Unit
MySQLServer

Applies to
TMySQLServer component

Declaration
type TMySQLServerLoginEvent = procedure(Server: TMySQLServer; LoginParams: TStrings); of object;

property
 OnLogin: TMySQLServerLoginEvent;

Description
This event occurs just before a connection is made to the MySQL Server. The LoginParams string list passed to this event is the Params property of the TMySQLServer. Currently two sections are valid in this string list, ex:

...  
[client]  
host=localhost  
port=3306  
user=root  
password=  
 
[embedded]  
basedir=c:/mysql  
...  


The "client" section's values will override any properties you may have set on the component itself, thus host, username, password and port. The "embedded" section is read and passed to the embedded driver when you select it using the DriverKind property.