Is there a secret way to bind MySQL to more than one IP address?
As far as I can see the bind-address parameter in the my.cnf does not support more than one IP and you can't have it more than once.
|
|
|
No, there isn't (I just checked 1 hour ago). You can comment the bind-address in my.cnf:
If you want only 2 IPs, you will then have to use a firewall. |
|||
|
Binding to 127.0.0.x won't make it available to all the devices, it will make it available locally only. If you wish to make it available to all the interfaces, you should use 0.0.0.0. If you wish to access it from more than one, but less than all the interfaces, you should bind to 0.0.0.0 and firewall off the interfaces you don't want to be accessed through. Also, as a second layer of security, you should make sure that all your MySQL users have host field set to something other than % (ie any host). |
|||||||||||
|
|
No, you cannot. The page you link to clearly states:
|
|||
|
|
|
I think your question is related to this bug http://bugs.mysql.com/bug.php?id=14979 The bug report suggest some workaround. |
|||
|
|
|
You can specify a range as well: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_bind-address |
|||
|
|
|
You cannot have two "bind-address" lines. No error messages, but only last line is used. You can verify this by checking active mysqld ports with "netstat -anp | grep mysql". I quess that's why negative points to Zebastian. |
|||
|
|
|
Colic:
I do not see any reference to specifying a range at the link you provided. |
|||
|
|
|
It's also possible to have two lines with bind-address xxx.xxx.xxx.xxx with two different ip's. |
|||||||||||
|