注册
登录
会员
标签
鲜花鸡蛋
插件
帮助
Linux伊甸园论坛
»
Linux数据库应用
» mysql-standard-4.1.13编译安装的问题
‹‹ 上一主题
|
下一主题 ››
发新话题
发布投票
发布商品
发布悬赏
发布活动
发布辩论
发布视频
打印
mysql-standard-4.1.13编译安装的问题
lues
注册会员
注册用户
帖子
36
精华
0
积分
11
鲜花
0
鸡蛋
0
在线时间
0 小时
发短消息
加为好友
当前离线
楼主贴
大
中
小
发表于 2005-8-15 11:34
只看该作者
mysql-standard-4.1.13编译安装的问题
我按照mysql-standard-4.1.13l的INSTALL-BINARY 一步步来的,其步骤如下:
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
但是我在 scripts/mysql_install_db --user=mysql这一步始终有问题,bin/mysqld_safe --user=mysql &也有问题,其错误信息如下:
[root@test2 mysql]# scripts/mysql_install_db --user=mysql
Installing all prepared tables
Fill help tables
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_category.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_keyword.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_keyword.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_keyword.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_relation.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_relation.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_category.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_category.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_category.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
ERROR: 1017 Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
050812 18:21:43 [ERROR] ./bin/mysqld: Can't find file: './mysql/help_topic.frm' (errno: 13)
[root@test2 mysql]# bin/mysqld_safe --user=mysql &
[1] 12908
[root@test2 mysql]# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
050812 18:28:02 mysqld ended
UID
77973
帖子
36
精华
0
积分
11
贡献积分
0
论坛活跃
39
公关推广
10
鲜花
0
鸡蛋
0
在线时间
0 小时
注册时间
2004-3-24
最后登录
2005-9-30
查看详细资料
TOP
Roc.Ken
版主
帖子
6067
精华
88
积分
286
鲜花
1
鸡蛋
0
在线时间
424 小时
发短消息
加为好友
当前离线
呵呵抢到沙发了
大
中
小
发表于 2005-8-20 16:07
只看该作者
> > [root@test2 mysql]# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
050812 18:28:02 mysqld ended
检查一下 hostname 命令的输出,不要使用 localhost 这样的名字
UID
47703
帖子
6067
精华
88
积分
286
贡献积分
114
论坛活跃
831
公关推广
16
鲜花
1
鸡蛋
0
来自
hostpry.org
在线时间
424 小时
注册时间
2003-6-6
最后登录
2008-7-25
查看个人网站
查看详细资料
TOP
flycatcn
注册会员
注册用户
帖子
156
精华
0
积分
45
鲜花
0
鸡蛋
0
在线时间
0 小时
发短消息
加为好友
当前离线
板凳位置
大
中
小
发表于 2005-10-11 23:09
只看该作者
为什么没有写出 ./configure 这段的配置??
我怀疑你的 ./configure 这段配置有不适当的地方.造成你的MySQL用户没有对系统目录的读写权限
这个也是我在编译MYSQL的时候,经常忘记的错误.
可否给出完整的 ./configure 配置
我的常用配置如下
./configure --prefix=/usr/local/mysql --with-charser=gb2312 --localstatedir=/var/db/mysql
UID
96239
帖子
156
精华
0
积分
45
贡献积分
0
论坛活跃
208
公关推广
10
鲜花
0
鸡蛋
0
在线时间
0 小时
注册时间
2004-9-26
最后登录
2007-1-14
查看详细资料
TOP
hugqan
初来乍到
注册用户
帖子
1
精华
0
积分
4
鲜花
0
鸡蛋
0
在线时间
0 小时
发短消息
加为好友
当前离线
只剩马扎了
大
中
小
发表于 2006-7-24 23:29
只看该作者
:cool: 试试这两条命令:
chown -R mysql:mysql /var/db/mysql '数据库目录
chmod -R 755 /var/db/mysql
UID
112895
帖子
1
精华
0
积分
4
贡献积分
0
论坛活跃
1
公关推广
10
鲜花
0
鸡蛋
0
在线时间
0 小时
注册时间
2005-3-18
最后登录
2007-5-21
查看详细资料
TOP
‹‹ 上一主题
|
下一主题 ››
控制面板首页
编辑个人资料
积分记录
公众用户组
勋章
访问推广
领取红包
基本概况
版块排行
主题排行
发帖排行
积分排行
交易排行
在线时间
管理团队
管理统计
best dvd copy software