Ticket #5789 (new Patches)

Opened 1 year ago

Last modified 1 year ago

Allow using unix-domain sockets for the database connection

Reported by: tzafrir Assigned to: GameGamer43
Priority: minor Milestone: 2.11
Component: Core Version: SVN-HEAD
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

I'd like to use a private copy of mysql inside a chroot, and hence I'd like to speak to mysql through a unix-domain socket rather than a port.

Also note that a similar patch would be required if I wanted to use a custom port number.

This patch adds reading the socket name from a new (optional) amp_conf variable, AMPDBSOCK. If set, AMPDBHOST will be ignored and a socket will be used instead of the TCP port.

As a side note, the code just below the bulk of those changes seems to show pgsql support is completely broken.

Attachments

AMPDBSOCK-to-connect-to-db-through-unix-socket.patch (1.9 kB) - added by tzafrir on 04/23/12 08:38:19.

Change History

04/23/12 08:38:19 changed by tzafrir

  • attachment AMPDBSOCK-to-connect-to-db-through-unix-socket.patch added.

05/02/12 14:20:25 changed by GameGamer43

  • owner changed from p_lindheimer to GameGamer43.