|
修改了server文件头部,依然不行
[root@redflag11012602 mysql-5.5.24-tokudb-6.5.0-48167-linux-x86_64]# vi /etc/init.d/mysql
#!/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 daemon 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 and /etc/rc0.d/K01mysql.
# When this is done the mysql server will be started when the machine is
# started and shut down when the systems goes down.
# Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 64 36
# description: A very fast and reliable SQL database engine.
# Comments to support LSB init script conventions
### BEGIN INIT INFO
# Provides: mysql
# Required-Start: $local_fs $network $remote_fs
# Should-Start: ypbind nscd ldap ntpd xntpd
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop MySQL
# Description: MySQL is a very fast and reliable SQL database engine.
### END INIT INFO
# If you install MySQL on some other places than /usr/local/mysql, then you
# have to do one of the following things for this script to work:
#
# - Run this script from within the MySQL installation directory
# - Create a /etc/my.cnf file with the following information:
# [mysqld]
# basedir=<path-to-mysql-installation-directory>
# - Add the above to any other configuration file (for example ~/.my.ini)
# and copy my_print_defaults to /usr/bin
# - Add the path to the mysql-installation-directory to the basedir variable
# below.
#
# If you want to affect other MySQL variables, you should make your changes
# in the /etc/my.cnf, ~/.my.cnf or other MySQL configuration files.
# If you change base dir, you must also change datadir. These may get
# overwritten by settings in the MySQL configuration files.
basedir=/opt/tokudb/mysql
datadir=/opt/tokudb/mysql/data
"/etc/rc.d/init.d/mysql" 384L, 10694C 已写入
[root@redflag11012602 mysql-5.5.24-tokudb-6.5.0-48167-linux-x86_64]# pwdd
-bash: pwdd: command not found
[root@redflag11012602 mysql-5.5.24-tokudb-6.5.0-48167-linux-x86_64]# pwd
/opt/tokudb/mysql-5.5.24-tokudb-6.5.0-48167-linux-x86_64
[root@redflag11012602 mysql-5.5.24-tokudb-6.5.0-48167-linux-x86_64]# ./bin/mysqld --skip-grant &
[1] 24763
[root@redflag11012602 mysql-5.5.24-tokudb-6.5.0-48167-linux-x86_64]# 121011 15:52:46 [ERROR] Can't find messagefile '/usr/local/mysql/share/errmsg.sys'
121011 15:52:46 [Warning] Can't create test file /usr/local/mysql/data/redflag11012602.lower-test
121011 15:52:46 [Warning] Can't create test file /usr/local/mysql/data/redflag11012602.lower-test
./bin/mysqld: Can't change dir to '/usr/local/mysql/data/' (Errcode: 2)
121011 15:52:46 [ERROR] Aborting
121011 15:52:46 [Note]
[1]+ Exit 1 ./bin/mysqld --skip-grant |
|