Dear all,
I was trying to get connected to Ensembl host with the php script
below on my linux station in order to be able to query any MySQL
database of interest hosted at Ensembl
<?php
$link = mysql_connect('ensembldb.ensembl.org:3306', 'anonymous', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
I got the parameters at the following webpages :
http://www.ensembl.org/info/docs/api/registry.html
But I got the following error message.
Could not connect: Can't connect to MySQL server on
'ensembldb.ensembl.org' (4)
So I was wondering if some fofyou could test this script in order to
know if it does not work with me because I am may be not able to do
external query for security reason.
Thanks in advance for your help.
Fred
--
Related website : www.bioinformatics.fr
You received this message because you are subscribed to the Google Groups "group4bioinformatics" group.
To post to this group, send email to group4bioi...@googlegroups.com
To unsubscribe from this group, send email to group4bioinforma...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/group4bioinformatics
On Fri, Nov 27, 2009 at 11:25 AM, Fred <frederi...@gmail.com> wrote:Dear all,
I was trying to get connected to Ensembl host with the php script
below on my linux station in order to be able to query any MySQL
database of interest hosted at Ensembl
Try with port 5306 instead of 3306...
mysql -u anonymous -h ensembldb.ensembl.org -P 3306from my computer, I am able to connect to ensembl; and I have tried your script from a computer with php installed and it can connect ('Connected successfully'). so there it should be some problem with your connection, I am sorry I can't help more than this.