LinuxSir.cn,穿越时空的Linuxsir!

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

slackware10 包安装的mysql罢工的问题。

[复制链接]
发表于 2004-9-7 11:22:25 | 显示全部楼层 |阅读模式
服务器启动不了,并且在错误日志里显示什么。
host.frm文件无法读取找不到。
可我到/var/lib/mysql/mysql里看到它明明就在那里呆着呢。
 楼主| 发表于 2004-9-7 13:25:55 | 显示全部楼层
040907 12:27:28  mysqld started
040907 12:27:30  InnoDB: Started
040907 12:27:30  Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040907 12:27:30  Aborting

040907 12:27:30  InnoDB: Starting shutdown...
040907 12:27:32  InnoDB: Shutdown completed
040907 12:27:32  /usr/libexec/mysqld: Shutdown Complete

040907 12:27:32  mysqld ended
发表于 2004-9-7 13:34:43 | 显示全部楼层

回复: slackware10 包安装的mysql罢工的问题。

最初由 sleetdrop 发表
服务器启动不了,并且在错误日志里显示什么。
host.frm文件无法读取找不到。
可我到/var/lib/mysql/mysql里看到它明明就在那里呆着呢。


如是使用官方套件, 可參看以下文件:
/etc/rc.d/rc.mysqld

i.e.
more /etc/rc.d/rc.mysqld
 楼主| 发表于 2004-9-7 14:29:37 | 显示全部楼层
不好意思,俺shell没学好,嘿嘿,比较懒惰,一会儿硬着头皮去看啦,要是看不懂再回来问啊。
还有你们都没遇到过吗
我就是装的slackware光盘里的东东啊。
这几天问的比较多,多谢大家啦。
发表于 2004-9-7 14:42:29 | 显示全部楼层
最初由 sleetdrop 发表
不好意思,俺shell没学好,嘿嘿,比较懒惰,一会儿硬着头皮去看啦,要是看不懂再回来问啊。
还有你们都没遇到过吗
我就是装的slackware光盘里的东东啊。
这几天问的比较多,多谢大家啦。


不是 shell script 的問題, 只是把 howto use this program, 寫在這裡而已!!

# To start MySQL automatically at boot, be sure this script is executable:
# chmod 755 /etc/rc.d/rc.mysqld

# Before you can run MySQL, you must have a database.  To install an initial
# database, do this as root:
#
#   su - mysql
#   mysql_install_db
#
# Note that step one is becoming the mysql user.  It's important to do this
# before making any changes to the database, or mysqld won't be able to write
# to it later (this can be fixed with 'chown -R mysql.mysql /var/lib/mysql').

# To disallow outside connections to the database (if you don't need them, this
# is recommended to increase security), uncomment the next line:
#SKIP="--skip-networking"
发表于 2004-9-7 16:14:43 | 显示全部楼层
在运行前先运行mysql_install_db
 楼主| 发表于 2004-9-7 16:33:26 | 显示全部楼层
无法形容吾之愚蠢。
汗~~~~~~~~~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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