Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
2c6905a0
Commit
2c6905a0
authored
Dec 12, 2007
by
Ian Longden
Browse files
set port to 5306 if database version >= 48
parent
ee4735e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
+12
-1
modules/Bio/EnsEMBL/Registry.pm
modules/Bio/EnsEMBL/Registry.pm
+10
-1
No files found.
modules/Bio/EnsEMBL/DBSQL/DBConnection.pm
View file @
2c6905a0
...
...
@@ -143,7 +143,18 @@ sub new {
$driver
||=
'
mysql
';
$host
||=
'
mysql
';
$port
||=
3306
;
if
(
!
defined
(
$port
)){
$port
=
3306
;
if
(
$host
eq
"
ensembldb.ensembl.org
"){
if
(
$db
=~
/\w_\w_\w_(\d+)/
){
if
(
$
1
>=
48
){
$port
=
5306
;
}
}
}
}
$wait_timeout
||=
0
;
$self
->
username
(
$user
);
...
...
modules/Bio/EnsEMBL/Registry.pm
View file @
2c6905a0
...
...
@@ -1101,7 +1101,16 @@ sub load_registry_from_db {
my
$compara_version
=
0
;
$user
||=
"
ensro
";
$port
||=
3306
;
if
(
!
defined
(
$port
)){
$port
=
3306
;
if
(
$host
eq
"
ensembldb.ensembl.org
"){
if
(
!
defined
(
$db_version
)
or
$db_version
>=
48
){
$port
=
5306
;
}
}
}
$wait_timeout
||=
0
;
my
$db
=
DBI
->
connect
(
"
DBI:mysql:host=
$host
;port=
$port
"
,
$user
,
$pass
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment