innobackupex fails when --user, --port or --socket is set

5 views
Skip to first unread message

kazuho

unread,
Aug 5, 2009, 3:24:46 AM8/5/09
to Percona Dev
Hello,

Thank you for all your works. While I was evaluating xtrabacku, I
noticted that innobackupex seems fails when either of the options --
user, --port, or --socket is being set, since the options are appended
to the arguments passed to mysql client after "--". Here is the patch
to solve the problem.

--- /usr/bin/innobackupex-1.5.1.orig 2009-08-05 15:34:13.000000000
+0900
+++ /usr/bin/innobackupex-1.5.1 2009-08-05 16:11:38.000000000 +0900
@@ -992,8 +992,6 @@
# prepare options for mysql
if ($option_mysql_password) {
$options = "$options --password=$option_mysql_password";
- } else {
- $options = "$options --";
}
if ($option_mysql_user) {
$options = "$options --user=$option_mysql_user";
@@ -1004,6 +1002,7 @@
if ($option_mysql_socket) {
$options = "$options --socket=$option_mysql_socket";
}
+ $options = "$options --";
$options;
}

Reply all
Reply to author
Forward
0 new messages