Hi,
I was trying to follow steps on the web serving benchmark. I was able to
create the mysql group and accounts and provide ownership to mysql for
the folders as required. But when I tried to install the mysql database
from the provided package, it aborted for not getting permissions to write.
root> scripts/mysql_install_db --user=mysql
Installing MySQL system tables...
ERROR: 1 Can't create/write to file
'/root/jayneel/cloudsuite/webserving/web-release/mysql-5.5.20-linux2.6-x86_64/data/mysql/db.MYI'
(Errcode: 13)
120627 19:26:50 [ERROR] Aborting
120627 19:26:50 [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!
Have you seen this issue before? If yes, how did you resolve it?
Thanks,
Jayneel