<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi All. Sorry to bother you.<br><br>I can't connect the Ensembl database.<br><br>My code is as following<br>use Bio::EnsEMBL::Registry;<br>my $registry = 'Bio::EnsEMBL::Registry';<br>$registry->load_registry_from_db(<br>      -host       =>'ensembldb.ensembl.org',<br>      -user       =>'anonymous',<br>      -db_version =>'67');<br>my @adaptors=@{$registry->get_all_adaptors(-GROUP => 'core', -TYPE => 'gene')};<br><br>open IN,"IDs.txt";<br>while(<IN>){<br>      chomp;<br>      my ($gene,$name,$species);<br>      $id=$_;<br>      for $adaptor(@adaptors){<br>       $gene=$adaptor->fetch_by_stable_id($id);<br>       }<br>      $name=$gene->external_name;<br>      $species=$gene->species;<br>}<br>close IN;<br><br>Then I got the following error:<br>MSG: Cannot connect to the Ensembl MySQL server at ensembldb.ensembl.org:5306; check your settings & DBI error message: Can't connect to MySQL server on 'ensembldb.ensembl.org' (111)<br>STACK Bio::EnsEMBL::Registry::load_registry_from_db /root/Ensembl-67/ensembl/modules/Bio/EnsEMBL/Registry.pm:1576<br><br>Is there anything wrong with my code? Wish your help! Thanks very much! I really appreciate it.<br><br><br>Best regards,<br><br>Mei<br><br>                                       </div></body>
</html>