How To : Set Port In Cdbconnection

Hi all…

i try using cdbconnection to connect sphinx server.

my sphinx server in localhost, my sphinx port in 9306.

when i config this , i got error messages [color="#FF0000"]" CDbConnection failed to open the DB connection."[/color]

this is my config cdbconnection.



$connection=new CDbConnection($dsn,$port);


question :

how to configure cdbconnection using port?

i have read

nothing found about setup with port connection,.


Regards. :rolleyes: :rolleyes: :rolleyes: :rolleyes:


I use this :

$dsn = 'mysql:dbname=catalog;host=;port=9306;';


$connection=new CDbConnection($dsn);

i set port in $dsn variable…