把文件/opt/tokudb/mysql/support-files/mysql.server中 /usr/local/mysql修改为/opt/tokudb/mysql
保存
"support-files/mysql.server" 384L, 10655C 已写入
[root@redflag11012602 mysql]# service mysql start
Starting MySQL..The server quit without updating PID file (/opt/tokudb/mysql/data/redflag11012602.pid).[失败]
[root@redflag11012602 mysql]# scripts/mysql_install_db --user=mysql
Installing MySQL system tables...
ERROR: 1 Can't create/write to file '/opt/tokudb/mysql-5.5.24-tokudb-6.5.0-48167-linux-x86_64/data/mysql/db.MYI' (Errcode: 13)
121008 19:36:54 [ERROR] Aborting
121008 19:36:54 [Note] ./bin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
./data for more information.
You can try to start the mysqld daemon with:
shell> ./bin/mysqld --skip-grant &
and use the command line tool ./bin/mysql
to connect to the mysql database and look at the grant tables:
shell> ./bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the ./bin/mysqlbug script!