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
Package registry
Model registry
Operate
Terraform modules
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
raT
backupninja
Commits
44a7ee89
Commit
44a7ee89
authored
7 years ago
by
Ilja Bauer
Browse files
Options
Downloads
Patches
Plain Diff
#11148: skip dumping information|performance_schema in mysql handler
parent
d297d0ff
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 @
44a7ee89
...
...
@@ -238,14 +238,14 @@ then
then
if
[
$usevserver
=
yes
]
then
debug
'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
`
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
|
grep
-v
'^\(information\|performance\)_schema$'
`
if
[
$?
-ne
0
]
then
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
fi
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
]
then
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
...
...
@@ -257,15 +257,6 @@ then
do
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
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