From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 22:29:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A73516A46C for ; Wed, 4 Jul 2007 22:29:25 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 23FC813C458 for ; Wed, 4 Jul 2007 22:29:25 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from [192.168.2.102] (adsl-65-68-205-180.dsl.rcsntx.swbell.net [65.68.205.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 7F96465DA5 for ; Wed, 4 Jul 2007 17:29:22 -0500 (CDT) Date: Wed, 04 Jul 2007 17:29:19 -0500 From: Paul Schmehl To: User Questions Message-ID: <3239D874508554AF01ED85E9@paul-schmehls-powerbook59.local> In-Reply-To: <340a29540707041500g25289b6la1aec3340b5cd628@mail.gmail.com> References: <340a29540707041500g25289b6la1aec3340b5cd628@mail.gmail.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========A84EFF6CCD1EDFB8F185==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How does one start mysql after installing from ports 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: Wed, 04 Jul 2007 22:29:25 -0000 --==========A84EFF6CCD1EDFB8F185========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On July 4, 2007 4:00:48 PM -0600 Andrew Falanga =20 wrote: > This is pretty pathetic but I'm batting a 1000 on this one. I > installed mysql a few weeks ago on this web server I'm making for my > church and didn't do anything with it at that point (that was the > first mistake). I've not used mysql (I usually use PostgreSQL) but > WebGUI wants mysql. So, being completely unfamiliar with it, I cannot > figure out how to start this thing. > > I eventually figured out that the mysqld process starts by using > mysqld_safe in /usr/local/bin. However, I can't get it to start. At > first it was because the directory /var/db/mysql didn't exist. I > created that and now I get this: > All ports that run daemons should put a startup script in=20 /usr/local/etc/rc.d. Mysqld does. Look at that script and it will=20 explain what you need to do to start mysql. The port maintainer has=20 written the script so that it should start mysqld properly. Basically, you add mysqld_enable=3D"YES" to the /etc/rc.conf file, but = look=20 at the script and read the comments in it. Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========A84EFF6CCD1EDFB8F185==========--