mysql:7814
From: "Kana Tobata" <"Kana Tobata" <ktobata@xxxxxxxxxx>>
Date: Fri, 23 May 2003 12:52:20 +0900
Subject: [mysql 07814] Re: PC 起動と同時に MySQL 起動( Macintosh
久保田様、かわはらづか様、Tsubaki様
レスをありがとうございます。
まずは、Tsubaki様に教えていただいた
/Library/StartupItems/MySQL/
の中のMySQLの中身を確認しました。
内容は以下のようになってました。
-----------------------------------------------------
#!/bin/sh
. /etc/rc.common
##
# Start up the MySQL database server on Mac OS X / Darwin
#
if [ "${MYSQL:=-YES-}" = "-YES-" ]; then
ConsoleMessage "Starting MySQL database server"
# Some mysql scripts will not work in the /usr/local/mysql
# symlinked directory, only in the real one with the
# version number.
#
# To prevent having to change this script every time the
# version changes, we use perl to read out the actual symlink
# value of /usr/local/mysql and cd to that directory.
# Everything will work from there.
#
cd /usr/local/
REALDIR=`perl -e 'print readlink "mysql"'`
cd $REALDIR
# We have to find out if we're starting a 3.x or a 4.x
# MySQL database server
#
if [ -e ./bin/safe_mysqld ]
then
# This is version 3.x
#
./bin/safe_mysqld --user=mysql &
elif [ -e ./bin/mysqld_safe ]
then
# This is version 4.x
#
./bin/mysqld_safe --user=mysql &
else
# Don't know what version this is
#
ConsoleMessage "Found neither safe_mysqld nor mysqld_safe"
fi
fi
-----------------------------------------------------
現在MySQLを、/Users/tobata/mysql
以下に保存しているため
ディレクトリの移動の部分である
cd /usr/local/
を
cd /Users/tobata/
または
cd /usr/local/
REALDIR=`perl -e 'print readlink "mysql"'`
cd $REALDIR
を
cd /Users/tobata/mysql
に単純に書き換えました。
すると今度は、OS起動時のメッセージにも何も
でなくなりました。もちろん、MySQLも起動していません。
対処法がありましたら教えてください。
----------------------------
φ(株)キューリン
φシステム部 戸畑佳奈
φE-mail ktobata@xxxxxxxxxx
----------------------------
-> 7814 2003-05-23 12:52 ["Kana Tobata" <ktoba] Re: PC 起動と同時に MySQL 起動( Macintosh 7816 2003-05-23 19:19 ┗[Hiroto Tsubaki <jak@] 7820 2003-05-24 13:02 ┗["Kana Tobata" <ktoba] 7821 2003-05-24 20:47 ┗[Hiroto Tsubaki <jak@] Re: PC 起動と同時に MySQL 起動( M