Don't treat connections to 127.0.0.1 as remote
This commit is contained in:
parent
cdcc267f6c
commit
9c09e9556e
1 changed files with 6 additions and 4 deletions
|
@ -477,15 +477,17 @@ sub mysql_setup {
|
||||||
$opt{port} = ( $opt{port} eq 0 ) ? 3306 : $opt{port};
|
$opt{port} = ( $opt{port} eq 0 ) ? 3306 : $opt{port};
|
||||||
|
|
||||||
# If we're doing a remote connection, but forcemem wasn't specified, we need to exit
|
# If we're doing a remote connection, but forcemem wasn't specified, we need to exit
|
||||||
if ( $opt{'forcemem'} eq 0 ) {
|
if ( $opt{'forcemem'} eq 0 && ($opt{host} ne "127.0.0.1") && ($opt{host} ne "localhost")) {
|
||||||
badprint
|
badprint
|
||||||
"The --forcemem option is required for remote connections";
|
"The --forcemem option is required for remote connections";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
infoprint "Performing tests on $opt{host}:$opt{port}";
|
infoprint "Performing tests on $opt{host}:$opt{port}";
|
||||||
$remotestring = " -h $opt{host} -P $opt{port}";
|
$remotestring = " -h $opt{host} -P $opt{port}";
|
||||||
|
if (($opt{host} ne "127.0.0.1") && ($opt{host} ne "localhost")) {
|
||||||
$doremote = 1;
|
$doremote = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Did we already get a username and password passed on the command line?
|
# Did we already get a username and password passed on the command line?
|
||||||
if ( $opt{user} ne 0 and $opt{pass} ne 0 ) {
|
if ( $opt{user} ne 0 and $opt{pass} ne 0 ) {
|
||||||
|
@ -3048,7 +3050,7 @@ Jean-Marie Renouard
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Stephan Großberndt
|
Stephan Großberndt
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue