MySQL port 3306 open to local, closed to other?

Bill Christensen billc_lists at greenbuilder.com
Sun Jan 5 00:04:58 PST 2014


Nothing in /opt/local/etc/mysql5

I found:
/opt/local/lib/mysql5/bin/mysql_config
/opt/local/bin/mysql_config5

both of which contain

if [ 0 -eq 0 ]; then
  port=0
else
  port=3306
fi

and
/opt/local/include/mysql5/mysql/my_config.h
which consists of a whole bunch of commented-out stuff, and that's it.


Since it's apparently an 'optional' file, if I just created a file at
/opt/local/etc/mysql5/my.cnf which contains "bind-address        =
127.0.0.1", would that do the trick?


On Sat, Jan 4, 2014 at 9:12 PM, Jeremy Lavergne
<jeremy at lavergne.gotdns.org>wrote:

> The default is likely in /opt/local/etc/
>
> You could run find in that directory for any “*.cnf” files.
> find /opt/local/etc -type f -name “*.cnf"
>
> On Jan 4, 2014, at 22:10, Jeremy Lavergne <jeremy at lavergne.gotdns.org>
> wrote:
>
> > Running `port contents …` will list all the files of a given package,
> including any default config files.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20140105/4d47e17e/attachment.html>


More information about the macports-users mailing list