Re: [ILUG] Re: RedHat 7.1 & MySQL- Starting MySQL

From: Niall O Broin (niall at domain linux.ie)
Date: Mon 17 Sep 2001 - 10:59:10 IST


On Mon, Sep 17, 2001 at 11:11:36AM +0000, Vincent Cunniffe wrote:

> Kevin Kelley wrote:
>
> > This is probably a really easy, stupid error, but I've spent hours
> > looking to no avail. I have a brand new Dell PowerEdge 300SC server
> > running RedHat Linux 7.1. I managed to install Apache (finally) and
> > then got around to installing dynamic languages. MySQL was first on my
> > list.
> >
> > How-To-Repeat:
> >
> > I downloaded a binary of MySQL, unzipped it, installed it, set
> > ownerships, all that, and then when I type (from /usr/local/mysql)
> > "bin/safe_mysqld --user=mysql &" which is --EXACTLY-- what the manual says:
> >
> > ---------Terminal---------------------
> > [root at domain localhost mysql]# bin/safe_mysqld --user=mysql &
> > [1] 17281
> > [root at domain localhost mysql]# Starting mysqld daemon with databases from
> > /usr/local/mysql/var
> > 010915 22:52:52 mysqld ended
> >
> > [1]+ Done bin/safe_mysqld --user=mysql
> > [root at domain localhost mysql]#
> > --------------------------------------
> >
> > Well, that's it. I'd really appreciate any help!
>
>
> Well, there are a number of things which MySQL requires :
>
> 1. Correctly installed binaries
> 2. Initial databases created by the install process or an install script
> 3. Suitable ownership or rights to the database and logging directories
>
> If any of these fail, MySQL will fail to start.

I would suggest installing the RPM version of MySQL which ships with RH 7.1
particularly since the comment

> I managed to install Apache (finally)

probably indicates not a huge degree of Linux experience (and I'm sure that
RH 7.1 ships with an Apache version which works out of the box)

The RPM come with a start and stop script and a post-install script which
will install an initial database and tell you what the root password is etc.

> I install from source, so I'm not familiar with the RPM layout.

MySQL is not something I like installing from source much, because at any
given moment it seems to come with some caveats vis a vis linking against
some version or other of libc, or the threads library, or whatever. There are
usually RPMs of the latest stable versions available from the web site. Of
course if you must have the bleeding edge version, just be sure to read the
release notes carefully.

Niall



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:10 GMT