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
19dbc0aa
Commit
19dbc0aa
authored
17 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
add patch from matthew palmer to enhance mysql database selection (Closes: #452039)
parent
ea79f006
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
AUTHORS
+2
-1
2 additions, 1 deletion
AUTHORS
ChangeLog
+4
-0
4 additions, 0 deletions
ChangeLog
handlers/mysql.in
+1
-1
1 addition, 1 deletion
handlers/mysql.in
with
7 additions
and
2 deletions
AUTHORS
+
2
−
1
View file @
19dbc0aa
...
...
@@ -23,3 +23,4 @@ Anarcat -- lotsa patches
Jamie McClelland -- cstream patches
ale -- ldap cleanup
Sami Haahtinen <ressu@ressukka.net>
Matthew Palmer -- mysql enhancements
This diff is collapsed.
Click to expand it.
ChangeLog
+
4
−
0
View file @
19dbc0aa
...
...
@@ -28,6 +28,10 @@ version 0.9.5 -- unreleased
the data from a backup, but still backup the table structure. This is very
useful in cases where tables contain large amounts of cache data. See the
example.mysql for options, thanks Daniel Bonniot (Closes: #408829)
. Enhance code for selecting databases by asking MySQL not to give us the
header (-N), to not draw pretty boxes around the output (-B), send the query
via -e instead of a pipe and ensure MySQL listens to -B. Thanks to
Matthew Palmer (Closes: #452039).
pgsql:
. Support configuring PGSQLUSER for real, and document it a bit; this
broken support actually prevented pgsql handler to work for VServers
...
...
This diff is collapsed.
Click to expand it.
handlers/mysql.in
+
1
−
1
View file @
19dbc0aa
...
...
@@ -238,7 +238,7 @@ then
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
fi
else
databases
=
`
echo
'show databases'
|
su
$user
-c
"
$MYSQL
$defaultsfile
"
|
grep
-v
Database
`
databases
=
$(
su
$user
-c
"
$MYSQL
$defaultsfile
-N -B -e 'show databases'"
|
sed
's/|//g;/\+----/d'
)
if
[
$?
-ne
0
]
then
fatal
"Authentication problem, maybe user/password is wrong or mysqld is not running?"
...
...
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