localhost is a safer default, and partly because otherwise it binds to an IPv6 socket (::) and OpenBSD deliberately doesn't allow v4 connections to those, so people who do want (v4) network connections have trouble too. Add a comment explaining use of 0.0.0.0 to listen to any IPv4 interface. ok juanfra@ pea@ giovanni@, ok jcs@ on an earlier version (only change in the new one was adding a comment), dhill likes it too
14 lines
530 B
Plaintext
14 lines
530 B
Plaintext
$OpenBSD: patch-support-files_my-huge_cnf_sh,v 1.1 2016/02/12 13:30:38 sthen Exp $
|
|
--- support-files/my-huge.cnf.sh.orig Thu Feb 11 20:15:36 2016
|
|
+++ support-files/my-huge.cnf.sh Thu Feb 11 22:46:29 2016
|
|
@@ -27,6 +27,9 @@ socket = @MYSQL_UNIX_ADDR@
|
|
[mysqld]
|
|
port = @MYSQL_TCP_PORT@
|
|
socket = @MYSQL_UNIX_ADDR@
|
|
+# Default is to listen on :: (IPv6 only).
|
|
+# To listen to all IPv4 network addresses, use "bind-address = 0.0.0.0".
|
|
+bind-address = 127.0.0.1
|
|
skip-external-locking
|
|
key_buffer_size = 384M
|
|
max_allowed_packet = 1M
|