MDB2 slow mysql connect

Have a code:

$profiler->enterSection(‘MDB2connect’);

$mdb2 =& MDB2::connect("mysql://$mysqllogin:$mysqlpass@localhost/$mysqldb");

$profiler->leaveSection(‘MDB2connect’);

and then in result i see

              total ex. time	netto ex.       time	#calls	%	calls	callers

MDB2connect 2.6473159790039 2.6473159790039 1 N/A Global (1)

Why the MDB2 connect can be so slow ?

You should ask this on the PEAR mailing list or create a ticket for MDB2:

http://pear.php.net/package/MDB2/

Mike, thanks. I’ve solved it. My server was high loaded therefore all php operations were slow.