On 2013-08-11, Damon Getsman <[email protected]> wrote: > The solution was, indeed, dealing with creating a hardlink to > somewhere within the chroot'ed jail; in this case under > /var/www/var/run/mysql/mysql.sock after the appropriate path was > created. > > Anyway I just thought that I'd post that here, since a lot of people > in the OpenBSD community didn't seem to know how simple the solution > really was or where it might be found at. It might be a good idea to > toss this in the 4.x to 5.0 upgrade instructions, as well. It seems > like a relatively simple oversight.
I don't recall when it was added, but the package readme for mysql in recent versions of OpenBSD includes a section "chrooted daemons and MySQL socket" which shows you exactly how to do this. less +/chrooted /usr/local/share/doc/pkg-readmes/mysql*

