MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/usr/share/mysql-test/include/check_ipv6.inc
# Check if ipv6 is available.
#
# Parameters:
#  $check_ipv6_just_check - don't skip the test if IPv6 is unsupported,
#                           just set the variable $check_ipv6_supported
#
--disable_query_log
--disable_result_log
--disable_abort_on_error
let $check_ipv6_supported=1;
connect (checkcon123456789,::1,root,,test);
if($mysql_errno)
{
  let $check_ipv6_supported=0;
  if(!$check_ipv6_just_check)
  {
    skip No IPv6 support;
  }
}
connection default;
if(!$mysql_errno)
{
  disconnect checkcon123456789;
}
--enable_abort_on_error
--enable_result_log
--enable_query_log
# end check