[PHP-users 34281] hang up
liyuting @ m5.gyao.ne.jp
liyuting @ m5.gyao.ne.jp
2009年 2月 6日 (金) 19:13:56 JST
MySql$B$N(BPDO$B$r;HMQ$7$F$$$^$9!#(BSELECT$B$N4V$K%M%C%H%o!<%/%1!<%V%k$r30$9$H(B
$B!"(Bhang up$B$rH/@8$7$F$7$^$C$?!#Hs>o$K:$$C$F$$$^$9!#2r7hJ}K!$r65$($F$[$7$$$G$9!#(B
$B-!!!(Bphp$B$N%=!<%9(B(test.php)$B!'(B
try {
$options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
$dbh = new PDO('mysql:host=172.31.50.11;dbname=UNPIS_DLV;charset=cp932','dba','sql',$options);
echo "start!!!!!!!!!!\n";
for ($i=0;$i<100;$i++){
$data = $dbh->query('SELECT * from sys_exclusive');
echo "count=".$i."\n";
Sleep(5);
}
echo "end!!!!!!!!!!\n";
} catch (Exception $e) {
echo "error:". $e->GetMessage();
}
$B-"2<5-MM$K<B9T(B
$B!!!!(Bphp test.php
$B-#4D6-(B
$B!!!!(Buname -a
Linux hostname 2.6.18-53.el5PAE
$B!!(B
$B-$(BMysql$B!!(B
$B!!!!(B
$B!!!!(Bmysql Ver 14.12 Distrib 5.0.22, for redhat-linux-gnu (i686) using readline 5.0
$B-%(Bphp
version 5.2.6.
PHP-users メーリングリストの案内