Brian "Krow" Aker (krow) wrote,
Brian "Krow" Aker

IPV6 support for MySQL

Today I finally had some time to go back and work on refactoring the patch Milos did for his Google Summer of Code project for MySQL. I started doing this about a month ago but hit a snag with my time and wasn't able to get back to it.


[brian@zim client]$ ./mysql --protocol=tcp --host=::1 --user=root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.2.6-alpha-debug-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


So now it is just a matter of a few more cleanups to make it work. I fixed the localhost hack to handle issues with ipv6 having a different scheme for 127.0.01.
I've dropped a source tarball here:

You will need to do a --with-ipv6 and this is a build from source (for some reason our "make dist" is not generating a proper configure file right now...)

Let me be clear about this though, this is a bit of code I am testing. It is working for me, but I know that others (including the driver writers) have an interest in this. There is no support of this, and no promise of when this will go into the main tree. I would love feedback on ipv6 related issues found, but this is not an opportunity for other bugs. Do not even think of putting this into production.

This is also a bit of an experiment for me. I'd like to see if I get any feedback at all. If so I will consider doing stuff like this from time to time. Getting feedback on ongoing code is something I love to have, and I am hoping this turns out well.
  • Post a new comment


    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded