önce mysqli olarak deniyorum.
Localhost bağlantısında sorun yok. çalıştı...
db2 yi remote olarak bağladığımda bana şu hatayı veriyor.
"mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file"

my.cnf dosyasını değiştirmem söyleniyor. önceki mysql_ bağlantısı yaptığımda da aynı sorunu vermişti. php 5.2 de bu hatayı vermiyordu.

--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 00:22:01 -->-> Daha önceki mesaj 00:14:29 --

Update:
HeidiSQL ile remote hosta bağlandım ve şu sql komutunu kullandım.
Alıntı
SET SESSION old_passwords=FALSE;
SET PASSWORD = PASSWORD('[your password]');
şu anda hata almıyorum. denemeye devam