[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT: Getting started with MySQL



Peter Hessler wrote:
> Try running ` /usr/local/bin/safe_mysqld &`, as root.  `sudo` it
> if you need to.  If that works, you can add the following to your
> /etc/rc.local:
>
> ...
> if [ -x /usr/local/bin/safe_mysqld ]; then
>         echo -n ' mysqld';              /usr/local/bin/safe_mysqld  >
> /dev/null &
> fi
> ...

The startup script I tried previously
(/usr/local/share/mysql/mysql.server) runs the safe_mysqld script you
mention. I also tried running safe_mysqld as you suggest but the result
is the same:

mysqld started
Can't start server  : Bind on unix socket: Permission denied
Do you already have another mysqld server running on socket:
/var/run/mysql/mysql.sock ?

I just tried adjusting write permissions /var/run/mysql and mysqld now
starts. Should pkg_add have set that up for me?






-- 
Cybernet Security
Phone : 604-999-0207
Fax : 604-648-8597
http://cybernet-security.com