We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9220be8 commit b9c3ee3Copy full SHA for b9c3ee3
scripts/mytop.sh
@@ -1,6 +1,6 @@
1
#!/usr/bin/env perl
2
#
3
-# $Id: mytop,v 1.99-maria6 2019/10/22 14:53:51 jweisbuch Exp $
+# $Id: mytop,v 1.99-maria8 2025/07/16 17:59:26 jweisbuch Exp $
4
5
=pod
6
@@ -21,7 +21,7 @@ use Socket;
21
use List::Util qw(min max);
22
use File::Basename;
23
24
-$main::VERSION = "1.99-maria6";
+$main::VERSION = "1.99-maria8";
25
my $path_for_script = dirname($0);
26
27
$| = 1;
@@ -256,7 +256,11 @@ if (eval {DBI->install_driver("MariaDB")}) {
256
257
if ($config{socket} and -S $config{socket})
258
{
259
- $dsn .= "${prefix}_socket=$config{socket}";
+ $dsn .= "${prefix}_socket=$config{socket}";
260
+}
261
+elsif($config{host} eq "localhost")
262
+{
263
+ $dsn .= "host=$config{host}";
264
}
265
else
266
0 commit comments