Use same connection convention of specifying IPs

If we use hostnames, it will fail during name resolution on UNIX systems
This commit is contained in:
Vicențiu Ciorbaru 2018-04-12 03:26:39 +03:00
parent 990283b65c
commit 93aded05ea
4 changed files with 28 additions and 28 deletions

View file

@ -563,13 +563,13 @@ disconnect con4c;
set global max_user_connections = 0;
set global max_connections = 10;
flush user_resources;
connect tmp_con1,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con2,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con3,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con4,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con5,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con6,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con7,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con1,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
connect tmp_con2,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
connect tmp_con3,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
connect tmp_con4,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
connect tmp_con5,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
connect tmp_con6,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
connect tmp_con7,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
connect con5a,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
select "Con4a is alive";
Con4a is alive

View file

@ -563,13 +563,13 @@ disconnect con4c;
set global max_user_connections = 0;
set global max_connections = 10;
flush user_resources;
connect tmp_con1,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con2,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con3,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con4,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con5,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con6,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con7,localhost,quota,,test,$MASTER_MYPORT,;
connect tmp_con1,"::1",quota,,test,$MASTER_MYPORT,;
connect tmp_con2,"::1",quota,,test,$MASTER_MYPORT,;
connect tmp_con3,"::1",quota,,test,$MASTER_MYPORT,;
connect tmp_con4,"::1",quota,,test,$MASTER_MYPORT,;
connect tmp_con5,"::1",quota,,test,$MASTER_MYPORT,;
connect tmp_con6,"::1",quota,,test,$MASTER_MYPORT,;
connect tmp_con7,"::1",quota,,test,$MASTER_MYPORT,;
connect con5a,"::1",quota,,test,$MASTER_MYPORT,;
select "Con4a is alive";
Con4a is alive

View file

@ -179,13 +179,13 @@ set global max_user_connections = 0;
set global max_connections = 10;
flush user_resources;
connect (tmp_con1,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con2,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con3,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con4,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con5,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con6,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con7,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con1,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con2,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con3,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con4,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con5,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con6,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con7,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
connect (con5a,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
select "Con4a is alive";

View file

@ -180,13 +180,13 @@ set global max_user_connections = 0;
set global max_connections = 10;
flush user_resources;
connect (tmp_con1,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con2,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con3,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con4,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con5,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con6,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con7,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con1,"::1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con2,"::1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con3,"::1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con4,"::1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con5,"::1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con6,"::1",quota,,test,$MASTER_MYPORT,);
connect (tmp_con7,"::1",quota,,test,$MASTER_MYPORT,);
connect (con5a,"::1",quota,,test,$MASTER_MYPORT,);
select "Con4a is alive";