Original ticket @ https://developer.openads.org/ticket/1018
Openads 2.5 supports connecting to databases using sockets, but there is no UI setting, nor the installer allows the user to select a socket connection. Using sockets is a very common setup because it gives a speed increase over TPC/IP.
Adding a checkbox "Use local socket connection" and a text field to supply the socket path is required.
On MySQL socket connections are always used when the hostname is "localhost", so the setting is only useful in some special cases when users need to supply a named socket.
On the contrary PostgreSQL is always using TCP/IP if an hostname is supplied. Some research will be needed to know if named sockets are supported, otherwise we need to disable the socket name input field when the checkbox is checked.