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
ee384b08
Commit
ee384b08
authored
19 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
Fixed mysql no user defaults file handling
parent
2ee26aba
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
handlers/mysql
+3
-5
3 additions, 5 deletions
handlers/mysql
with
6 additions
and
5 deletions
ChangeLog
+
3
−
0
View file @
ee384b08
...
@@ -4,6 +4,9 @@ version 0.9.3 -- unreleased
...
@@ -4,6 +4,9 @@ version 0.9.3 -- unreleased
. added (commented out) the various default paths to
. added (commented out) the various default paths to
programs such as PGSQLDUMP, so that users can figure
programs such as PGSQLDUMP, so that users can figure
out more easily they can customize them
out more easily they can customize them
handler changes
mysql:
. fixed no user defaults file processing
version 0.9.2 -- December 29, 2005
version 0.9.2 -- December 29, 2005
backupninja changes
backupninja changes
...
...
This diff is collapsed.
Click to expand it.
handlers/mysql
+
3
−
5
View file @
ee384b08
...
@@ -139,15 +139,12 @@ EOF
...
@@ -139,15 +139,12 @@ EOF
else
else
defaultsfile
=
"--defaults-file=
$mycnf
"
defaultsfile
=
"--defaults-file=
$mycnf
"
fi
fi
# if user is set, don't use $mycnf
elif
[
"
$userset
"
==
"false"
]
;
then
defaultsfile
=
"--defaults-file=
$configfile
"
fi
fi
# if a user is not set, use $confgfile, otherwise use $mycnf
if
[
"
$user
"
==
""
]
;
then
if
[
"
$user
"
==
""
]
;
then
userset
=
false
;
user
=
root
;
user
=
root
;
defaultsfile
=
"--defaults-file=
$configfile
"
else
else
userset
=
true
;
userset
=
true
;
if
[
$usevserver
]
if
[
$usevserver
]
...
@@ -238,6 +235,7 @@ then
...
@@ -238,6 +235,7 @@ then
then
then
if
[
$usevserver
]
if
[
$usevserver
]
then
then
debug
"echo show databases |
$VSERVER
$vsname
exec su
$user
-c
$MYSQL
$defaultsfile
| grep -v Database"
databases
=
`
echo
'show databases'
|
$VSERVER
$vsname
exec
su
$user
-c
"
$MYSQL
$defaultsfile
"
|
grep
-v
Database
`
databases
=
`
echo
'show databases'
|
$VSERVER
$vsname
exec
su
$user
-c
"
$MYSQL
$defaultsfile
"
|
grep
-v
Database
`
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
...
...
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