Browse Source

Follow-up for Bug#12762885 - 61713: MYSQL WILL NOT BIND TO "LOCALHOST"

IF LOCALHOST IS BOTH IPV4/IPV6 ENABLED.

The original patch removed default value of the bind-address option.
So, the default value became NULL. By coincedence NULL resolves
to 0.0.0.0 and ::, and since the server chooses first IPv4-address, 
0.0.0.0 is choosen. So, there was no change in the behaviour.

This patch restores default value of the bind-address option to "0.0.0.0".
pull/73/head
Alexander Nozdrin 14 years ago
parent
commit
cb4490919b
  1. 3
      sql/mysqld.cc

3
sql/mysqld.cc

@ -1841,6 +1841,9 @@ static void network_init(void)
struct addrinfo *ai, *a;
struct addrinfo hints;
if (!my_bind_addr_str)
my_bind_addr_str= (char *) "0.0.0.0";
sql_print_information("Server hostname (bind-address): '%s'; port: %d",
my_bind_addr_str, mysqld_port);

Loading…
Cancel
Save