summaryrefslogtreecommitdiff
path: root/scripts/mysqldumpslow.sh
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-03-06 09:32:13 +0100
committerSergei Golubchik <sergii@pisem.net>2013-03-06 09:32:13 +0100
commit3bfd88d1d65d4f2fa13f84260fba22347538cdc0 (patch)
treea05cd0e711f6ccb528490be82a8ae8b38de756d2 /scripts/mysqldumpslow.sh
parent62b9be65422fc498356e122a7b9ca08f2ada9d0b (diff)
downloadmariadb-git-3bfd88d1d65d4f2fa13f84260fba22347538cdc0.tar.gz
MDEV-4068 rpm scriptlet chown command dangerous
add --mysqld option to my_print_defaults change server-postin script to use that
Diffstat (limited to 'scripts/mysqldumpslow.sh')
-rw-r--r--scripts/mysqldumpslow.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysqldumpslow.sh b/scripts/mysqldumpslow.sh
index 0de4fe159f0..c04ffad7457 100644
--- a/scripts/mysqldumpslow.sh
+++ b/scripts/mysqldumpslow.sh
@@ -53,7 +53,7 @@ GetOptions(\%opt,
$opt{'help'} and usage();
unless (@ARGV) {
- my $defaults = `my_print_defaults mysqld mariadb`;
+ my $defaults = `my_print_defaults --mysqld`;
my $datadir = ($defaults =~ m/--datadir=(.*)/g)[-1];
if (!$datadir or $opt{i}) {