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
399eb61c
Commit
399eb61c
authored
13 years ago
by
Andy Yates
Browse files
Options
Downloads
Patches
Plain Diff
Adding host as an option
parent
cc389ea7
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/db/dump_mysql.pl
+9
-1
9 additions, 1 deletion
misc-scripts/db/dump_mysql.pl
with
9 additions
and
1 deletion
misc-scripts/db/dump_mysql.pl
+
9
−
1
View file @
399eb61c
...
...
@@ -486,7 +486,7 @@ sub _set_opts_from_hostname {
if
!
$settings
;
#Setup default connection params
$o
->
{
host
}
=
$
host
;
$o
->
{
host
}
=
$
settings
->
{
host
}
||
$host
;
# use a configured host otherwise use hostname
$o
->
{
port
}
=
$settings
->
{
port
};
#Set just SQL dump mode only if specified in cfg file
...
...
@@ -747,6 +747,14 @@ form of an entry is
pattern = ^web\w+$ ; regular expression to filter DBs by
dir = /path/to/dump/dir ;
sql = 1 ; dump just the SQL for these databases
;if your host isn't the same as the server you are running the script on
[mydumpserver]
host = my-real-server ; host you want the script to connect to
port = 3306 ; port of the DB
pattern = ^web\w+$ ; regular expression to filter DBs by
dir = /path/to/dump/dir ;
sql = 1 ; dump just the SQL for these databases
As an example of one which grabs all core dbs from a-m and puts it in /dumps
...
...
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