#721487 mysql-server: standard mysql server installation does not listen on tcp6 protocol

Package:
mysql-server
Source:
mysql-8.0
Description:
MySQL database server and system database setup
Submitter:
Date:
2013-09-01 11:42:05 UTC
Severity:
normal
#721487#5
Date:
2013-09-01 09:06:45 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
     Trying to connect to mysql via perl script using DBI interface
   * What exactly did you do (or not do) that was effective (or
     Executing the perl script
   * What was the outcome of this action?
     No database connection
   * What outcome did you expect instead?
     Database connection :-)

my default installtion of mysql does not listen via IPv6 protocol for
connections, only via IPv4 protocol.

Here is the output of netstat:

root@g6 (~) % netstat --inet --listen -p -n | grep mysql
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
27020/mysqld
root@g6 (~) % netstat --inet6 --listen -p -n | grep mysql
(no output given)

Would it be possible to make mysql listen on IPv6 with a special configuration
option (I don't know) or is it a bug? I was not not able to find the option in
the default configuration files.

Sincerely,

Adrian Immanuel KIESS

#721487#10
Date:
2013-09-01 11:38:35 UTC
From:
To:
Hi Adrian,

letting mysql-server listen on localhost only is the default debian
configuration. This was done as a security enhancement.

Unfortunatelly you can only supply a single IP address to bind-address

So there are only:

bind-address = 127.0.0.1 # IPv4 localhost only
bind-address = ::1 # IPv6 localhost only
bind-address = 0.0.0.0 # IPv4 any
bind-address = :: # IPv6 any

but now way to open localhost for IPv4 and IPv6 only.

my vote -> close bug as it is a configuration issue.

Cheers
B

Am 01.09.2013 11:06, schrieb Adrian Immanuel Kiess: