From owner-freebsd-questions@FreeBSD.ORG Fri Nov 28 12:04:06 2003 Return-Path: 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 F3A5716A4CE for ; Fri, 28 Nov 2003 12:04:05 -0800 (PST) Received: from mail.lincsatmail.com (mail.lincsatmail.com [207.179.143.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF9443F3F for ; Fri, 28 Nov 2003 12:04:04 -0800 (PST) (envelope-from freymann@scaryg.shacknet.nu) Received: from interpool.homeunix.com (dpc69197180.direcpc.com [69.19.7.180]) (authenticated) by mail.lincsatmail.com (8.11.6/8.11.6) with ESMTP id hASK3eN07677; Fri, 28 Nov 2003 16:03:42 -0400 Date: Fri, 28 Nov 2003 15:03:50 -0500 From: ScaryG To: "Xpression" Message-Id: <20031128150350.349f7f7f.freymann@scaryg.shacknet.nu> In-Reply-To: <000501c3b5c6$41ac9f90$0901a8c0@bloodlust> References: <000501c3b5c6$41ac9f90$0901a8c0@bloodlust> X-Mailer: Sylpheed version 0.8.3 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean cc: FreeBSD Questions Subject: Re: MySQL question... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2003 20:04:06 -0000 On Fri, 28 Nov 2003 10:42:40 -0500 "Xpression" wrote: |O|> Hi list, I've installed mysql-4.0.16.tar.gz on a |O|>FreeBSD-4.5 server, at least it compile, then I edit and |O|>copy the my-medium.cnf file to /etc/my.cnf location...when I |O|>reboot MySQL doesn't start...anyone running it ??? Or I have |O|>to do some steps to make running it ??? You have to create a file in your /usr/local/etc/rc.d directory that will start (and stop) mysql. It needs to be 'chmod 755' (you could probably use chmod 700) And, it would likely contain something like this: ================= snip start============== #!/bin/sh case "$1" in start) if [ -x /usr/local/bin/safe_mysqld ]; then /usr/local/bin/safe_mysqld --user=mysql > /dev/null & echo -n ' mysqld' fi ;; stop) /usr/bin/killall mysqld > /dev/null 2>&1 && echo -n ' mysqld' ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac ================ end snippet ====================