summaryrefslogtreecommitdiff
path: root/mysql-test/main/bind_address_resolution.test
diff options
context:
space:
mode:
authorRinat Ibragimov <ri@tempesta-tech.com>2020-09-10 03:39:20 +0300
committerDaniel Black <daniel@mariadb.org>2021-03-05 08:25:52 +1100
commitb3abcf80a1be71502c1e25e0feb40ccea4648f4e (patch)
tree3816a06130886a744327c58674cf2e2c8d44ac25 /mysql-test/main/bind_address_resolution.test
parentf691d9865becfd242ba44cc632034433336af1e7 (diff)
downloadmariadb-git-b3abcf80a1be71502c1e25e0feb40ccea4648f4e.tar.gz
MDEV-6536: make --bind=hostname to listen on both IPv6 and IPv4 addresses
Binding to a hostname now makes MariaDB server to listen on all addresses that hostname resolves to. Rebased to 10.6 by Daniel Black Closes: #1668
Diffstat (limited to 'mysql-test/main/bind_address_resolution.test')
-rw-r--r--mysql-test/main/bind_address_resolution.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/main/bind_address_resolution.test b/mysql-test/main/bind_address_resolution.test
new file mode 100644
index 00000000000..9bad9313cf7
--- /dev/null
+++ b/mysql-test/main/bind_address_resolution.test
@@ -0,0 +1,19 @@
+--source include/check_ipv6.inc
+--source include/not_embedded.inc
+
+# The server is started with --bind-address=localhost, and should
+# listen on all addresses 'localhost' resolves to. With at least
+# 127.0.0.1 and ::1 amongst them.
+
+CREATE TABLE t (a TEXT);
+--connect(con1,localhost,root,,test)
+SELECT * FROM t;
+--connect(con2,127.0.0.1,root,,test)
+SELECT * FROM t;
+--connect(con3,::1,root,,test)
+SELECT * FROM t;
+--connection default
+DROP TABLE t;
+--disconnect con1
+--disconnect con2
+--disconnect con3