I have a same problem with this... but I used PQconnection
  I can solve my program with add this   code
  ===================================================
    with PQConnection1 do
  begin
       HostName:='localhost';
       DatabaseName:='pep';
       UserName:='superuser';
       Password:='admin';
       Params.Clear;
       Params.Add('port='+QuotedStr('3559'));
  end;
  PQConnection1.Open;  
===================================================
  Maybe you must try 'port' or 'Port' -> according to MySQL component 
   
  Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
  

On Tue, 3 Apr 2007, Sébastien TACK wrote:

> Hello,
> 
> I would like specify a precise port for TMysqlConnection.
> How can I do this ?

I committed a fix to subversion so you can specify it in the parameters:

Params.['Port']:=IntToStr(4545);

This means you'll have to recompile the mysql connection component.

Michael.

 
---------------------------------
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.

Reply via email to