1# Check if ipv6 is available.
2#
3--disable_query_log
4--disable_result_log
5--disable_abort_on_error
6connect (checkcon123456789,::1,root,,test);
7if($mysql_errno)
8{
9    skip No IPv6 support;
10}
11connection default;
12if(!$mysql_errno)
13{
14  disconnect checkcon123456789;
15}
16--enable_abort_on_error
17--enable_result_log
18--enable_query_log
19# end check
20
21