Chinaunix

标题: 新手:新装mysql启动出错,请帮帮忙 [打印本页]

作者: eyesofhawk    时间: 2003-07-15 17:41
标题: 新手:新装mysql启动出错,请帮帮忙
在Solaris2.5.1.下装mysql-3.23.53-sol25-sparc-local

root# ./mysql.server start
./mysql.server: /usr/local/bin/hostname: not found
root# /usr/local/mysql/bin/safe_mysqld: /usr/local/bin/hostname: not found
Starting mysqld daemon with databases from /usr/local/mysql/var
030715 18:30:26  mysqld ended
请问这里的hostname是个什么文件。

在mysql.server脚本里# Set some defaults
datadir=/usr/local/mysql/var
basedir=
pid_file=
if test -z "$basedir"
then
  basedir=/usr/local/mysql
  bindir=/usr/local/mysql/bin
else
  bindir="$basedir/bin"
fi
if test -z "$pid_file"
then
  pid_file=$datadir/`/usr/local/bin/hostname`.pid这是什么意思,做什么用的。如何设置
else
  case "$pid_file" in
    /* ) ;;
    * )  pid_file="$datadir/$pid_file" ;;
  esac
fi
麻烦各位了,拜托了!!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2