openbsd-ports/databases/mariadb/patches/patch-support-files_my-innodb-heavy-4G_cnf_sh
sthen 3bb8e00e66 Set default MariaDB config files to use bind-address=127.0.0.1, partly because
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
2016-02-12 13:30:38 +00:00

14 lines
660 B
Plaintext

$OpenBSD: patch-support-files_my-innodb-heavy-4G_cnf_sh,v 1.1 2016/02/12 13:30:38 sthen Exp $
--- support-files/my-innodb-heavy-4G.cnf.sh.orig Thu Feb 11 20:15:36 2016
+++ support-files/my-innodb-heavy-4G.cnf.sh Thu Feb 11 22:46:32 2016
@@ -46,6 +46,9 @@ socket = @MYSQL_UNIX_ADDR@
# generic configuration options
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
# back_log is the number of connections the operating system can keep in
# the listen queue, before the MariaDB connection manager thread has