~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to scripts/mysqldumpslow.sh

Fixed stupid command parsing bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    warn "basedir=$basedir\n" if $opt{v};
41
41
 
42
42
    my $datadir = ($defaults =~ m/--datadir=(.*)/)[0];
43
 
    my $slowlog = ($defaults =~ m/--log-slow-queries=(.*)/)[0];
 
43
    my $slowlog = ($defaults =~ m/--log[_-]slow[_-]queries=(.*)/)[0];
44
44
    if (!$datadir or $opt{i}) {
45
45
        # determine the datadir from the instances section of /etc/my.cnf, if any
46
46
        my $instances  = `my_print_defaults instances`;