Re: how to avoid process die when can't create mysql dbh

2005-10-26 Thread Wiggins d'Anconia
Jeff Pan wrote: > hi, > > Because of network problem,my script can't create Mysql dbh sometime > when running,then it died.I have written code like this: > > my > $mysql_dbh=DBI->connect("dbi:mysql:$mysql_db:$mysql_host",$mysql_user,$mysql_passwd, > {PrintError =>

how to avoid process die when can't create mysql dbh

2005-10-25 Thread Jeff Pan
hi, Because of network problem,my script can't create Mysql dbh sometime when running,then it died.I have written code like this: my $mysql_dbh=DBI->connect("dbi:mysql:$mysql_db:$mysql_host",$mysql_user,$mysql_passwd, {PrintError => 1,RaiseError => 0}); I want to