[MDEV-3775] LP:956585 - Feature request - prevent truncating query in mytop Created: 2012-03-16 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Vladislav Vaintroub | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad, MariaDB_5.3 | ||
| Attachments: |
|
| Description |
|
Asked by MariaDB user on IRC . He also created a patch for mytop - additional -L option (long queries). |
| Comments |
| Comment by Vladislav Vaintroub [ 2012-03-16 ] |
|
Re: Feature request - prevent truncating query in mytop |
| Comment by Vladislav Vaintroub [ 2012-03-16 ] |
|
Patch for -L option |
| Comment by Jean Weisbuch (Inactive) [ 2012-03-16 ] |
|
Re: Feature request - prevent truncating query in mytop
+## Try ~/.my.cnf first + +if (-e $mycnf) +{ + my $cfgini = new Config::IniFiles( -file => $mycnf ); + my @sections = ('client', 'mytop'); + + foreach my $section (@sections) { + foreach my $param ($cfgini->Parameters ($section)) + { + $config{$param} = $cfgini->val($section, $param) if exists $config{$param}; + } + } + ## map database/password onto db/pass (long version gets precedence in .my.cnf) + $config{'db'} = $config{'database'} if $config{'database'}; + $config{'pass'} = $config{'password'} if $config{'password'}; +} + ## Read the user's config file, if it exists. my $config = "$ENV{HOME} /.mytop"; |
| Comment by Jean Weisbuch (Inactive) [ 2012-03-16 ] |
|
Re: Feature request - prevent truncating query in mytop |
| Comment by Michael Widenius [ 2012-03-27 ] |
|
Re: Feature request - prevent truncating query in mytop Thanks for the patches! |
| Comment by Rasmus Johansson (Inactive) [ 2012-03-27 ] |
|
Launchpad bug id: 956585 |