Date: Mon, 4 Dec 2000 10:04:16 -0500 (EST) From: Louis Mamakos <louie@TransSys.COM> To: FreeBSD-gnats-submit@freebsd.org, dirk@freebsd.org Subject: ports/23266: mysql323-server port broken - can't create /var/run/mysql.sock Message-ID: <200012041504.eB4F4G143254@whizzo.transsys.com> Resent-Message-ID: <200012041510.eB4FA1O50381@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 23266 >Category: ports >Synopsis: mysql server can't create mysql.sock in /var/run as user mysql >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 04 07:10:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Louis Mamakos >Release: FreeBSD 4.2-STABLE i386 >Organization: >Environment: Recent mysql323-server port, with change to move socket to /var/run/mysql.sock; running 4.2-STABLE >Description: If mysqld is started as user 'mysql', it doesn't have permissions to create a socket in /var/run. According to /etc/mtree/BSD.var.dist, /var/run has mode 0755 and is owned by root. >How-To-Repeat: Install new version of port, run standard ${DESTDIR}/etc/mysql-server.sh script to run server as mysql user; see hostname.err file in /var/db/mysql >Fix: I dunno. Short-term hack is to chmod 1777 /var/run, but this doesn't seem like the right answer. Previously, socket was /tmp/mysql.sock which seemed to work. Should safe_mysqld create socket before changing effective user to mysql (or whatever was named?) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012041504.eB4F4G143254>