On Thu, 5 Sep 2002, Darryl Hoar wrote:
> Greetings,
> I downloaded the mysql-max-3.23.42-pc-sco3.2v5.0.6-i386 from MySQL website.
> I installed it per the INSTALL-BINARY readme file.
>
> When I try (from /usr/local/mysql) issue:
> bin/safe_mysqld --user=mysql &
>
> It starts and immediately stops mysqld. The .err file contains
>
> 020904 21:41:45 mysqld started
> 020904 21:41:45 bdb:
> /var/opt/K/SCO/Unix/5.0.6Ga/usr/local/mysql-max-3.23.42-pc-sco3.2v5.0.6-i386
> /data/log.0000000001: Permission denied
> 020904 21:41:45 bdb: PANIC: Permission denied
> 020904 21:41:45 Can't init databases
> 020904 21:41:45 mysqld ended
>
> I have changed the ownership/group as per the instructions and I even went
> so far as to
> set the permission on the data directory to 777. Still no joy.
>
> Any ideas what step I missed?

Below is the S99mysql file I link to both K99mysql in the rc2.d directory.
I make sure eveything related to mysql is owned by the mysq user and start
it with the file below.

Good Luc,

--
Boyd Gerber <[EMAIL PROTECTED]>
ZENEZ   1042 East Fort Union #135, Midvale Utah  84047

#!/bin/sh
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind

# Mysql deamon start/stop script.

# Usually this is put in /etc/init.d (at least on machines SYSV R4
# based systems) and linked to /etc/rc3.d/S99mysql. When this is done
# the mysql server will be started when the machine is started.

PATH=:/bin:/etc:/usr/bin:/usr/local/bin:/tcb/bin:/usr/ccs/bin:/usr/local/ubin:
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/mysql/lib/mysql:/usr/local/bdb/lib:
export PATH LD_LIBRARY_PATH
basedir=/usr/local/mysql
bindir=/usr/local/mysql/bin

mode=$1

# The following test may be removed if mysqld isn't to be run as root.
# if test ! -w /
# then
#   echo "$0: this script must be run as root ... fatal error"
#   exit 1
# fi

# Safeguard (relative paths, core dumps..)
cd $basedir

case "$mode" in
  'start')
    # Start deamon

    if test -x $bindir/safe_mysqld
    then
      # -l means start with log.
        /bin/su mysql -c "$bindir/safe_mysqld --user=mysql -l &"
    else
      echo "Can't execute $bindir/safe_mysqld"
    fi
    ;;

  'stop')
    # Stop deamon
    $bindir/mysqladmin shutdown
    ;;

  *)
    # usage
    echo "usage: $0 start|stop"
    exit 1
    ;;
esac


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to