免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2395 | 回复: 9
打印 上一主题 下一主题

[Web] Redhat9+apache+php+mysql4.0.26安装出问题,求救!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-27 11:13 |只看该作者 |倒序浏览
前面安装apache和PHP都很顺利,再安装mysql-4.0.26时,最后执行[root@redhat9xp bin]# mysqld_safe &时系统提示:
[root@redhat9xp bin]# mysqld_safe &
[1] 9864
[root@redhat9xp bin]# Starting mysqld daemon with databases from /usr/local/var
STOPPING server from pid file /usr/local/var/redhat9xp.pid
051020 16:21:55  mysqld ended
上面的提示是什么意思,问题出在什么地方。?


贴上日志文件:
051020 16:15:48  mysqld started
Fatal error: Can't change to run as user 'mysql'.  Please check that the user exists!
051020 16:15:48 Aborting

051020 16:15:48 /usr/local/mysql/libexec/mysqld: Shutdown Complete

051020 16:15:48  mysqld ended

051020 16:20:31  mysqld started
051020 16:20:31  InnoDB: Operating system error number 13 in a file operation.
InnoDB: See http://dev.mysql.com/doc/mysql/en/InnoDB.html
InnoDB: for installation help.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
051020 16:20:31  mysqld ended

在线等...................................

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2005-10-27 11:58 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

你可以自己学着看日志么?

Fatal error: Can't change to run as user 'mysql'.  Please check that the user exists!
这个已经很明显了啊

论坛徽章:
0
3 [报告]
发表于 2005-10-27 12:22 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

那是之前启动的
后来051020 16:20:31  mysqld started 出错是什么原因?
051020 16:20:31  InnoDB: Operating system error number 13 in a file operation.

论坛徽章:
0
4 [报告]
发表于 2005-10-27 12:32 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

最近学习freebsd,也遇到这问题.

#tar zxvf mysql-standard-5.0.12-beta-freebsd5.3-i386.tar.gz
#mv mysql-standard-5.0.12-beta-freebsd5.3-i386 mysql //把文件改成mysql
#cp -r mysql /usr/local //把mysql目录拷贝到/usr/local目录下
#cd /usr/local/mysql
#pw groupadd mysql
#pw useradd mysql -g mysql
#chown -R root .
#chown -R mysql data
#chgrp -R mysql .
#scripts/mysql_install_db --user=mysql
#cd /usr/local/mysql/bin
#./mysqld_safe --user=mysql //启动mysql服务

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
5 [报告]
发表于 2005-10-27 13:21 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

那你吧mysql的日志先删除了,再起动。

再把日志贴上来。

freebsd使用ports安装很简单的。

论坛徽章:
0
6 [报告]
发表于 2005-10-27 13:37 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

删掉之后,重新启动的日志文件:
051020 18:47:38  mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
051020 18:47:38  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
051020 18:47:39  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
051020 18:47:39  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
051020 18:47:40  InnoDB: Started
051020 18:47:40 /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
051020 18:47:40 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (er
rno: 13)
051020 18:47:40 Aborting

051020 18:47:40  InnoDB: Starting shutdown...
051020 18:47:42  InnoDB: Shutdown completed
051020 18:47:42 /usr/local/mysql/libexec/mysqld: Shutdown Complete

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
7 [报告]
发表于 2005-10-27 13:50 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

051020 18:47:40 /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)

没有发现mysql的host.frm文件。

你做了mysql的初始化数据库的工作么?

论坛徽章:
0
8 [报告]
发表于 2005-10-27 14:03 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

怎么初始化数据库?请教

论坛徽章:
0
9 [报告]
发表于 2005-10-27 18:05 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

干嘛不用包安装,

RPM,PORT都不错呀.

论坛徽章:
0
10 [报告]
发表于 2005-10-28 15:47 |只看该作者

Redhat9+apache+php+mysql4.0.26安装出问题,求救!!!

linux被我删掉了,下次试试RPM
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP