mysql5/mysql-5.7.27/rapid/plugin/x/tests/mtr/r/connection_ipv6.result

192 lines
4.2 KiB
Plaintext

Preamble
install plugin mysqlx soname "mysqlx.so";
call mtr.add_suppression("Plugin mysqlx reported: .Failed at SSL configuration: .SSL context is not usable without certificate and private key..");
call mtr.add_suppression("Plugin mysqlx reported: .SSL_CTX_load_verify_locations failed.");
call mtr.add_suppression("Plugin mysqlx reported: .+: Unsuccessful login attempt: Invalid user or password");
CREATE USER `user_localhost`@`localhost`;
CREATE USER `user_127_0_0_1`@`127.0.0.1`;
CREATE USER `user_::1`@`::1`;
CREATE USER `user_0:0:0:0:0:0:0:1`@`0:0:0:0:0:0:0:1`;
CREATE USER `user_0::0000:0000:0000:0000:0001`@`0000:0000:0000:0000:0000:0000:0000:0001`;
CREATE USER `user_0:0:0:0:0:FFFF:127.0.0.1`@`0:0:0:0:0:FFFF:127.0.0.1`;
CREATE USER `user_::FFFF:127.0.0.1`@`::FFFF:127.0.0.1`;
#
#
# Server enabled with IPv4, test connectivity from localhosts
#
#
RUN SELECT user()
user()
user_localhost@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
0.0.0.0
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address 0.0.0.0
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
RUN SELECT user()
user()
user_127_0_0_1@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
0.0.0.0
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address 0.0.0.0
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
#
#
# Server enabled with IPv4, test connectivity from mapped localhost-ips
#
#
RUN SELECT user()
user()
user_localhost@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
0.0.0.0
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address 0.0.0.0
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
RUN SELECT user()
user()
user_127_0_0_1@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
0.0.0.0
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address 0.0.0.0
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
# restart: --loose-mysqlx-bind-address=::
#
#
# Server enabled with IPv6 and IPv4, test connectivity from localhosts
#
#
RUN SELECT user()
user()
user_localhost@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
::
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address ::
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
RUN SELECT user()
user()
user_localhost@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
::
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address ::
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
RUN SELECT user()
user()
user_127_0_0_1@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
::
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address ::
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
RUN SELECT user()
user()
user_::1@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
::
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address ::
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
#
#
# Server enabled with IPv6 and IPv4, test connectivity from mapped localhost-ips
#
#
RUN SELECT user()
user()
user_localhost@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
::
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address ::
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
RUN SELECT user()
user()
user_127_0_0_1@localhost
0 rows affected
RUN SELECT @@global.mysqlx_bind_address
@@global.mysqlx_bind_address
::
0 rows affected
RUN SHOW STATUS LIKE 'mysqlx_address'
Variable_name Value
Mysqlx_address ::
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
UNINSTALL PLUGIN `mysqlx`;
DROP USER `user_localhost`@`localhost`;
DROP USER `user_127_0_0_1`@`127.0.0.1`;
DROP USER `user_::1`@`::1`;
DROP USER `user_0:0:0:0:0:0:0:1`@`0:0:0:0:0:0:0:1`;
DROP USER `user_0::0000:0000:0000:0000:0001`@`0000:0000:0000:0000:0000:0000:0000:0001`;
DROP USER `user_0:0:0:0:0:FFFF:127.0.0.1`@`0:0:0:0:0:FFFF:127.0.0.1`;
DROP USER `user_::FFFF:127.0.0.1`@`::FFFF:127.0.0.1`;