LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 793|回复: 3

启动slackware11默认的MySQL出错!

[复制链接]
发表于 2007-3-22 02:10:44 | 显示全部楼层 |阅读模式
参考了文章:
slackware 11.0 安装及基本配置 (不断更新)
http://www.linuxsir.cn/bbs/showthread.php?t=274723
对Mysql的配置,但
mysql_install_db
时出现如下错误:

  1. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  2. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  3. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  4. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  5. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  6. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  7. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  8. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  9. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  10. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  11. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  12. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  13. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  14. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  15. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
  16. 070322  2:05:48 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)

  17. To start mysqld at boot time you have to copy support-files/mysql.server
  18. to the right place for your system

  19. PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
  20. To do so, start the server, then issue the following commands:
  21. /usr/bin/mysqladmin -u root password 'new-password'
  22. /usr/bin/mysqladmin -u root -h slackware password 'new-password'
  23. See the manual for more instructions.

  24. You can start the MySQL daemon with:
  25. cd /usr ; /usr/bin/mysqld_safe &

  26. You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
  27. cd sql-bench ; perl run-all-tests

  28. Please report any problems with the /usr/bin/mysqlbug script!

  29. The latest information about MySQL is available on the web at
  30. http://www.mysql.com
  31. Support MySQL by buying support/licenses at http://shop.mysql.com
  32. [color="Magenta"]mysql@slackware:/$ [/color]
复制代码


请问问题原因何在?如何解决?谢谢!
发表于 2007-3-22 09:40:20 | 显示全部楼层
你是怎么装系统的,我装过几次,没出现这个问题哦 !
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-22 10:45:41 | 显示全部楼层
之前我在另外一台机器上安装过(IDE硬盘),一切都很正常;但是现在这台机器(SATA硬盘),却是莫名的问题百出,弄得我头都大……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-23 01:33:24 | 显示全部楼层
问题终于解决了,原来是因为目录/var/lib/mysql以及其下的子目录、文件的属主不属于mysql。运行一下命令后就搞掂了,^_^

  1. #chown -R mysql /var/lib/mysql
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表