diff --git a/plugins/node.d/mysql_ b/plugins/node.d/mysql_ index 945ce8c5b..680d2a76a 100755 --- a/plugins/node.d/mysql_ +++ b/plugins/node.d/mysql_ @@ -1911,13 +1911,15 @@ sub update_plugins { } my $sth = $dbh->prepare("SHOW PLUGINS"); - $sth->execute(); - while (my $row = $sth->fetchrow_hashref()) { - next if $row->{'type'} ne 'INFORMATION SCHEMA'; - my $sec = lc $row->{'name'}; - next if not exists $plugin_map{$sec}; - add_graphs($plugin_map{$sec}, $sec, $dbh, %{$graph_plugins{$sec}}); - } + eval { + $sth->execute(); + while (my $row = $sth->fetchrow_hashref()) { + next if $row->{'type'} ne 'INFORMATION SCHEMA'; + my $sec = lc $row->{'name'}; + next if not exists $plugin_map{$sec}; + add_graphs($plugin_map{$sec}, $sec, $dbh, %{$graph_plugins{$sec}}); + } + }; $sth->finish(); my %is_map = (