Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
634da051
Commit
634da051
authored
18 years ago
by
Ensembl Account
Browse files
Options
Downloads
Patches
Plain Diff
added warnings
parent
295dbab2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/external_db/update_external_dbs.pl
+6
-5
6 additions, 5 deletions
misc-scripts/external_db/update_external_dbs.pl
with
6 additions
and
5 deletions
misc-scripts/external_db/update_external_dbs.pl
+
6
−
5
View file @
634da051
...
...
@@ -23,13 +23,13 @@ GetOptions( "host=s", \$host,
);
#both host and file are required
usage
()
if
(
!
$host
||
!
$file
);
usage
(
"
[DIE] Need a host and file
\n\n
"
)
if
(
!
$host
||
!
$file
);
#release num XOR dbname are required
usage
()
if
((
$release_num
&&
@dbnames
)
||
(
!
$release_num
&&
!
@dbnames
));
usage
(
"
[DIE] Need either both a release number and database names or neither
\n\n
"
)
if
((
$release_num
&&
@dbnames
)
||
(
!
$release_num
&&
!
@dbnames
));
# master database is required
usage
()
if
(
!
$master
);
usage
(
"
[DIE] Master database required
\n\n
"
)
if
(
!
$master
);
$port
||=
3306
;
...
...
@@ -178,8 +178,9 @@ sub compare_external_db {
}
sub usage {
my $error = shift;
print STDERR <<EOF
$error
Usage: update_external_db options
Where options are: -host hostname
-user username
...
...
@@ -205,7 +206,7 @@ sub usage {
perl
update_external_dbs
.
pl
-
host
ecs1c
-
file
external_dbs
.
txt
-
user
ensadmin
-
pass
secret
-
dbnames
homo_sapiens_core_14_33
-
dbnames
mus_musculus_core_14_30
# update all core databases for release 14
perl
update_external_dbs
.
pl
-
host
e
cs2d
-
file
external_dbs
.
txt
-
user
ensadmin
-
pass
secret
-
release
1
4
perl
update_external_dbs
.
pl
-
host
e
ns
-
staging
-
file
external_dbs
.
txt
-
user
ensadmin
-
pass
secret
-
release
4
2
-
master
master_schema_42
If
the
databases
to
be
updated
contain
rows
that
are
not
in
the
file
,
a
warning
will
be
given
and
the
database
in
question
skipped
,
unless
-
force
is
used
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment