From 62560330d1a44d1c3aeb82dcbadbb798496d5a00 Mon Sep 17 00:00:00 2001
From: Andrew Yates <ayates@ebi.ac.uk>
Date: Fri, 26 Apr 2013 08:40:44 +0000
Subject: [PATCH] We now use 3306 for all connections apart from DBs who are
 older than release 48

---
 modules/Bio/EnsEMBL/Registry.pm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm
index c30bc47d32..f9ec9e4f28 100644
--- a/modules/Bio/EnsEMBL/Registry.pm
+++ b/modules/Bio/EnsEMBL/Registry.pm
@@ -1594,10 +1594,8 @@ sub load_registry_from_db {
   $user ||= "ensro";
   if ( !defined($port) ) {
     $port = 3306;
-    if ( $host eq "ensembldb.ensembl.org" ) {
-      if ( (!defined($db_version)) or ($db_version >= 48) ) {
-        $port = 5306;
-      }
+    if ( $host eq "ensembldb.ensembl.org" && defined($db_version) && $db_version < 48 ) {
+      $port = 4306;
     }
   }
 
-- 
GitLab