On Sun, Aug 18, 2013 at 01:29:14PM +0300, Ville Valkonen wrote: > ehm.. 127.0.0.1 == localhost
yes, but if you use 127.0.0.1 you force a tcp connection and no unix domain socket is even needed. -Otto > On Aug 18, 2013 12:06 PM, "K??rlis Mi??elsons" <karlis.mikels...@lf.lv> > wrote: > > > Broken record: linking only works until you restart the server > >> manually, as mysqld removes the socket and re-creates it when starting. > >> The location of the socket is configured in /etc/my.cnf. To use mysql > >> with chrooted Apache / Nginx either use TCP connections, or set both > >> /etc/my.cnf and /var/www/etc/my.cnf to point to a place inside the > >> chroot jail. > >> > > Or even simpler solution, tell MySQL to use TCP connections instead of > > UNIX sockets by connecting to "127.0.0.1" instead of "localhost". > > > > > > Karlis