From owner-freebsd-questions@FreeBSD.ORG Fri Jun 23 04:31:10 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D42B016A494 for ; Fri, 23 Jun 2006 04:31:10 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from netmusician.org (netmusician.org [216.9.132.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75DA043D45 for ; Fri, 23 Jun 2006 04:31:10 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from localhost (localhost [127.0.0.1]) by netmusician.org (Postfix) with ESMTP id F01C27E8D6; Fri, 23 Jun 2006 00:31:09 -0400 (EDT) X-Virus-Scanned: by amavisd-new at netmusician.org Received: from netmusician.org ([127.0.0.1]) by localhost (jauty.suso.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Us8bY5nP8rcQ; Fri, 23 Jun 2006 00:31:09 -0400 (EDT) Received: from [192.168.0.3] (unknown [74.128.244.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by netmusician.org (Postfix) with ESMTP id 519137E8D4; Fri, 23 Jun 2006 00:31:09 -0400 (EDT) In-Reply-To: <449B6BC3.5080704@gmail.com> References: <157DAABD-8A51-4642-994F-90C79C75CD80@netmusician.org> <449B6BC3.5080704@gmail.com> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joe Auty Date: Fri, 23 Jun 2006 00:31:17 -0400 To: Dennis Olvany X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Gpgmail-State: signed X-Mailer: Apple Mail (2.750) Cc: FreeBSD Questions Subject: Re: MySQL RC script failing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 04:31:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jun 23, 2006, at 12:19 AM, Dennis Olvany wrote: > I recall having to tinker with the rc script. Let's have a look at > the script and also the log residing in the db root, probably /var/ > db/mysql. > _______________________________________________ Sure! Here is the RC script: > #!/bin/sh > # > # $FreeBSD: ports/databases/mysql50-server/files/mysql- > server.sh.in,v 1.3 2006/03/07 16:25:00 ale Exp $ > # > > # PROVIDE: mysql > # REQUIRE: LOGIN > # KEYWORD: shutdown > > # > # Add the following line to /etc/rc.conf to enable mysql: > # mysql_enable (bool): Set to "NO" by default. > # Set it to "YES" to enable MySQL. > # mysql_limits (bool): Set to "NO" by default. > # Set it to yes to run `limits -e -U mysql` > # just before mysql starts. > # mysql_dbdir (str): Default to "/var/db/mysql" > # Base database directory. > # mysql_args (str): Custom additional arguments to be passed > # to mysqld_safe (default empty). > # > > . /etc/rc.subr > > name="mysql" > rcvar=`set_rcvar` > > load_rc_config $name > > : ${mysql_enable="NO"} > : ${mysql_limits="NO"} > : ${mysql_dbdir="/var/db/mysql"} > : ${mysql_args=""} > > mysql_user="mysql" > mysql_limits_args="-e -U ${mysql_user}" > pidfile="${mysql_dbdir}/`/bin/hostname`.pid" > command="/usr/local/bin/mysqld_safe" > command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=$ > {mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} $ > {mysql_args} > /dev/null &" > procname="/usr/local/libexec/mysqld" > start_precmd="${name}_prestart" > mysql_install_db="/usr/local/bin/mysql_install_db" > mysql_install_db_args="--ldata=${mysql_dbdir}" > > mysql_create_auth_tables() > { > eval $mysql_install_db $mysql_install_db_args >/dev/null > [ $? -eq 0 ] && chown -R ${mysql_user}:${mysql_user} $ > {mysql_dbdir} > } > > mysql_prestart() > { > if [ ! -d "${mysql_dbdir}/mysql/." ]; then > mysql_create_auth_tables || return 1 > fi > if checkyesno mysql_limits; then > eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null > else > return 0 > fi > } > > run_rc_command "$1" Here is the relevant snippet from my error log: 060622 23:54:39 mysqld started 060622 23:54:39 [ERROR] Can't find messagefile '/usr/local/share/ mysql/english/errmsg.sys' 060622 23:54:39 [ERROR] Aborting 060622 23:54:39 mysqld ended This file does exist, and has the same permissions assigned to it that my working FreeBSD machine has, so I don't think this error message should be taken at face value. - ----------- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEm26VCgdfeCwsL5ERAuXfAJwOPilCeI2b2CFDTzRjLyEF7ai8/gCfVgsz ZKel2JXXdF0BcFJpnam+Q+w= =Do5b -----END PGP SIGNATURE-----