Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
a3ee78c0
Commit
a3ee78c0
authored
7 years ago
by
intrigeri
Browse files
Options
Downloads
Plain Diff
Merge branch 'mysql' into 'master'
#11148
: skip dumping information|performance_schema in mysql handler See merge request
!5
parents
f8e1664e
711ea76d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/mysql.in
+3
-12
3 additions, 12 deletions
handlers/mysql.in
with
3 additions
and
12 deletions
handlers/mysql.in
+
3
−
12
View file @
a3ee78c0
...
@@ -238,14 +238,14 @@ then
...
@@ -238,14 +238,14 @@ then
then
then
if
[
$usevserver
=
yes
]
if
[
$usevserver
=
yes
]
then
then
debug
'set -o pipefail ; echo show databases | $VSERVER $vsname exec su $user -c \"$MYSQL $defaultsfile\" | grep -v Database
'
debug
'set -o pipefail ; echo show databases | $VSERVER $vsname exec su $user -c \"$MYSQL $defaultsfile\" | grep -v Database
| grep -v '
"'"
'^\(information\|performance\)_schema$'
"'"
databases
=
`
set
-o
pipefail
;
echo
'show databases'
|
$VSERVER
$vsname
exec
su
$user
-c
"
$MYSQL
$defaultsfile
"
|
grep
-v
Database
`
databases
=
`
set
-o
pipefail
;
echo
'show databases'
|
$VSERVER
$vsname
exec
su
$user
-c
"
$MYSQL
$defaultsfile
"
|
grep
-v
Database
|
grep
-v
'^\(information\|performance\)_schema$'
`
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
fi
fi
else
else
databases
=
$(
set
-o
pipefail
;
su
$user
-c
"
$MYSQL
$defaultsfile
-N -B -e 'show databases'"
|
sed
's/|//g;/\+----/d'
)
databases
=
$(
set
-o
pipefail
;
su
$user
-c
"
$MYSQL
$defaultsfile
-N -B -e 'show databases'"
|
sed
's/|//g;/\+----/d
;/^\(information\|performance\)_schema$/d
'
)
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
...
@@ -257,15 +257,6 @@ then
...
@@ -257,15 +257,6 @@ then
do
do
DUMP_BASE
=
"
$MYSQLDUMP
$defaultsfile
$sqldumpoptions
"
DUMP_BASE
=
"
$MYSQLDUMP
$defaultsfile
$sqldumpoptions
"
case
"
$db
"
in
information_schema
)
DUMP_BASE
=
"
${
DUMP_BASE
}
--skip-lock-tables"
;;
performance_schema
)
DUMP_BASE
=
"
${
DUMP_BASE
}
--skip-lock-tables --skip-events"
;;
esac
# Dumping structure and data
# Dumping structure and data
DUMP
=
"
$DUMP_BASE
$ignore
$db
"
DUMP
=
"
$DUMP_BASE
$ignore
$db
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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