Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2006 07:21:16 -0400
From:      Gerard Seibert <gerard@seibercom.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: permissions dilemma 
Message-ID:  <20060429071507.B595.GERARD@seibercom.net>
In-Reply-To: <11e8c67c0d0f09b07ea6bc52e9447407@prodigy.net>
References:  <20060428203449.B6EC.GERARD@seibercom.net> <11e8c67c0d0f09b07ea6bc52e9447407@prodigy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
jekillen wrote:

> 
> On Apr 28, 2006, at 5:38 PM, Gerard Seibert wrote:
> 
> > jekillen wrote:
> >
> >> Hello:
> >> I have had a problem with installing MySQL 5.0.18 on a FreeBSD v 6.0
> >> installation
> >> where everything seems to compile and install correctly but the server
> >> crashes
> >> immediately on start up with permission to create/write it's .pid file
> >> denied.
> >> Then the screen saver daemon refuses to start in X windows with a
> >> permission denied
> >> error. It originally worked fine. But at some point recently the 
> >> screen
> >> saver quit working.
> >> When I went to Gnome preferences and tried to set the screen saver I 
> >> was
> >> informed that the screen saver daemon wasn't running. When I tried to
> >> have it
> >> start I was presented with the permission denied error and to check 
> >> the
> >> $path
> >> variable.
> >> I tried installing MySQL twice, each time with the same problem.
> >> As I understand it, permissions in Unix are part of the file system
> >> format.
> >> The only possible link between MySQL and the screen saver daemon,
> >> possibly, is the
> >> mysql user needed to run mysqld.
> >>
> >> Could I have a corrupted file system in such a way as to cause
> >> permission problems?
> >>
> >> thanks in advance.
> >> JK
> >
> > Are you starting MySQL with the script in /usr/local/etc/rc.d/ upon
> > bootup?
> >
> Boy that was fast, I just posted this message a moment ago...
> No I was just testing it using the mysqld_safe --user=mysql & approach.
>
It won't work that way. I made the same mistake once myself. You might
have introduced another problem however. The files created in
'/var/db/mysql' [probable have the wrong permissions set on them.

The easiest fix would be to just remove that directory and then start
mysql properly. Usually '/usr/local/etc/rc.d/mysql-server start' should
do the trick. The directories will be build correctly.

At then end of the build of mysql are directions for creating users. You
do that after mysql has been started. If you no longer have that
information, I can supply you with it.

HTH


-- 
Gerard Seibert
gerard@seibercom.net


     "I earn a seven-figure salary.  Unfortunately, there's
     a decimal point involved."

          Anonymous




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060429071507.B595.GERARD>