Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


MySQL over IPv6??
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

MySQL over IPv6??

I cannot for gods sake get MySQL to work over IPv6 please can some MySQL god help me.

And yes @rm_ did rape me into IPv6

Comments

  • HassanHassan Member, Patron Provider

    I laughed way too hard at this post

  • @Hassan said:
    I laughed way too hard at this post

    Dont blame ya. Would laugh harder if you could see me swearing

  • very interesting. Looking for information too.

  • All that is in order @William

    Tried telnetting and got a connection refused

  • MySQL works with IPv6. Check your firewall / iptables?

    Also try VPN over IPv6.

  • @msg7086 said:
    MySQL works with IPv6. Check your firewall / iptables?

    Also try VPN over IPv6.
    @Jack said:
    ip6tables?

    Can you give me a command to try. Not really familiar with ip6tables

  • wychwych Member
    edited January 2015

    @TinyTunnel_Tom if testing just

    service ip6tables stop

    , try it and if it works then add the command to whitelist the port for MySQL.

    Is MySQL listening on IPv6?

  • edited January 2015
    root@sql1:~# service ip6tables stop
    ip6tables: unrecognized service
    root@sql1:~#
    

    @wych

  • @TinyTunnel_Tom said:

    root@sql1:~# service ip6tables stop
    ip6tables: unrecognized service
    root@sql1:~#
    

    wych

    What Distro?

  • @wych said:
    What Distro?

    Debian7

  • @TinyTunnel_Tom said:
    Debian7

    Does

    ip6tables -vL

    show anything?

    Try

    sudo /etc/init.d/ip6tables-persistent stop

    ...

  • @wych said:
    Try

    sudo /etc/init.d/ip6tables-persistent stop

    ...

    root@sql1:/etc# ip6tables -vL
    Chain INPUT (policy ACCEPT 1632 packets, 951K bytes)
     pkts bytes target     prot opt in     out     source               destination 
    
    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination 
    
    Chain OUTPUT (policy ACCEPT 1036 packets, 126K bytes)
     pkts bytes target     prot opt in     out     source               destination 
    root@sql1:/etc# #
    
    root@sql1:/etc# /etc/init.d/ip6tables-persistent stop
    -bash: /etc/init.d/ip6tables-persistent: No such file or directory
    root@sql1:/etc#
    
  • Anyone else?

  • MakenaiMakenai Member
    edited January 2015

    What did you try to telnet? Public IPv6 or local?

    Try

    telnet ::1 3306

    If it works blame the firewall

    Is it even listening to IPv6?

    sudo netstat -lntp --inet6

  • @Makenai said:
    What did you try to telnet? Public IPv6 or local?

    Try

    telnet ::1 3306

    If it works blame the firewall

    Is it even listening to IPv6?

    sudo netstat -lntp --inet6

    root@sql1:/etc# telnet ::1 3306
    Trying ::1...
    telnet: Unable to connect to remote host: Connection refused
    root@sql1:/etc#
    

    root@sql1:/etc# netstat -lntp --inet6 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp6 0 0 :::53 :::* LISTEN 8919/named tcp6 0 0 :::22 :::* LISTEN 25434/sshd tcp6 0 0 ::1:953 :::* LISTEN 8919/named root@sql1:/etc#
  • MakenaiMakenai Member
    edited January 2015

    It is not even listening to ipv6 connections. There is an issue with Mysql IPv6 configuration.

  • @Makenai said:
    It is not even listening to ipv6 connections. There is an issue with Mysql IPv6 configuration.

    I just realised. Any ideas how to allow it to listen to MySQL IPv6

  • MakenaiMakenai Member
    edited January 2015

    Add

    bind-address=::
    

    to your mysql configuration (Normally /etc/my.cnf)

    This will make it listen to all IPv4 and IPv6 interfaces

    After that restart mysqld

    /etc/init.d/mysqld restart
    
  • @Makenai said:
    Add

    bind-address=::
    

    to your mysql configuration (Normally /etc/my.cnf)

    This will make it listen to all IPv4 and IPv6 interfaces

    After that restart mysqld

    /etc/init.d/mysqld restart
    

    Makenai said: bind-address=::

    THANK YOU :D IT works now :D

    @mpkossen do the honours of closing this for me :)

  • @TinyTunnel_Tom said:
    mpkossen do the honours of closing this for me :)

    Done. :-)

    Thanked by 1TinyTunnel_Tom
This discussion has been closed.