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
Custom issue tracker
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
Liberate
backupninja
Commits
40155781
Commit
40155781
authored
14 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
Fix code logic to make dbusername/dbpassword actually usable (Closes Redmine bug
#2264
)
parent
9179c59b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AUTHORS
+1
-0
1 addition, 0 deletions
AUTHORS
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
handlers/mysql.in
+8
-7
8 additions, 7 deletions
handlers/mysql.in
with
11 additions
and
7 deletions
AUTHORS
+
1
−
0
View file @
40155781
...
@@ -34,3 +34,4 @@ Olivier Berger <oberger@ouvaton.org> -- much work on the dup handler
...
@@ -34,3 +34,4 @@ Olivier Berger <oberger@ouvaton.org> -- much work on the dup handler
stefan <s.freudenberg@jpberlin.de> -- dup support for Amazon S3 buckets
stefan <s.freudenberg@jpberlin.de> -- dup support for Amazon S3 buckets
maniacmartin <martin@maniacmartin.com> -- rdiff confusing error message fix
maniacmartin <martin@maniacmartin.com> -- rdiff confusing error message fix
Chris Nolan <chris@cenolan.com> -- maildir subdirectory expansion
Chris Nolan <chris@cenolan.com> -- maildir subdirectory expansion
Dan Carley -- mysql bugfix
This diff is collapsed.
Click to expand it.
ChangeLog
+
2
−
0
View file @
40155781
...
@@ -25,6 +25,8 @@ version 0.9.8 -- UNRELEASED
...
@@ -25,6 +25,8 @@ version 0.9.8 -- UNRELEASED
mysql:
mysql:
. Don't lock tables in the information_schema database
. Don't lock tables in the information_schema database
(Closes: #587011)
(Closes: #587011)
. Fix code logic to make dbusername/dbpassword actually usable
(Closes Redmine bug #2264)
doc changes
doc changes
manpage:
manpage:
. Fix typo in manpage (Closes: #583778)
. Fix typo in manpage (Closes: #583778)
...
...
This diff is collapsed.
Click to expand it.
handlers/mysql.in
+
8
−
7
View file @
40155781
...
@@ -86,7 +86,7 @@ fi
...
@@ -86,7 +86,7 @@ fi
defaultsfile
=
""
defaultsfile
=
""
if
[
"
$dbusername
"
!=
""
-a
"
$dbpassword
"
!=
""
]
if
[
-n
"
$dbusername
"
-a
-n
"
$dbpassword
"
]
then
then
if
[
$usevserver
=
yes
]
if
[
$usevserver
=
yes
]
then
then
...
@@ -140,13 +140,10 @@ password="$dbpassword"
...
@@ -140,13 +140,10 @@ password="$dbpassword"
EOF
EOF
umask
$oldmask
umask
$oldmask
defaultsfile
=
"--defaults-extra-file=
$mycnf
"
defaultsfile
=
"--defaults-extra-file=
$mycnf
"
fi
# if a user is not set, use $configfile, otherwise use $mycnf
# else, if a user is set use her .my.cnf
if
[
"
$user
"
==
""
]
;
then
elif
[
-n
"
$user
"
]
user
=
root
;
then
defaultsfile
=
"--defaults-extra-file=
$configfile
"
else
userset
=
true
;
userset
=
true
;
if
[
$usevserver
=
yes
]
if
[
$usevserver
=
yes
]
then
then
...
@@ -169,6 +166,10 @@ else
...
@@ -169,6 +166,10 @@ else
defaultsfile
=
"--defaults-extra-file=
$userhome
/.my.cnf"
defaultsfile
=
"--defaults-extra-file=
$userhome
/.my.cnf"
debug
"using
$defaultsfile
"
debug
"using
$defaultsfile
"
# otherwise use $configfile
else
user
=
root
defaultsfile
=
"--defaults-extra-file=
$configfile
"
fi
fi
#######################################################################
#######################################################################
...
...
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