mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-26 04:32:42 +01:00
add patch from matthew palmer to enhance mysql database selection (Closes: #452039)
This commit is contained in:
parent
ea79f006da
commit
19dbc0aaee
3
AUTHORS
3
AUTHORS
@ -22,4 +22,5 @@ Martin Krafft madduck@debian.org -- admingroup patch
|
||||
Anarcat -- lotsa patches
|
||||
Jamie McClelland -- cstream patches
|
||||
ale -- ldap cleanup
|
||||
Sami Haahtinen <ressu@ressukka.net>
|
||||
Sami Haahtinen <ressu@ressukka.net>
|
||||
Matthew Palmer -- mysql enhancements
|
||||
|
@ -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
|
||||
|
@ -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?"
|
||||
|
Loading…
Reference in New Issue
Block a user