安装mysql 出现“The error means mysqld does not have the access rights to”

cowboyryan 2009-11-05 11:44:59
问题描述:
1.下载mysql 5.0.86安装包;
2.按照网上步骤运行
# ./configure --prefix=/usr/local/mysql \ //设定安装目录
--enable-thread-safe-client \ //编译线程安全版的客户端库
--without-debug \ //关闭debug功能
--with-extra-charsets=gb2312 \ //添加gb2312中文字符支持
--enable-assembler \ //使用一些字符函数的汇编版本
--with-raid \ //激活raid支持

# make //编译

# make install //安装

3.出现问题的是make,提示“no target 。。。no targets specified and no makefile found”这个提示。
4.接着进入 data查看日志文件。
5.日志文件结果:
031205 22:50:14 mysqld started
031205 22:50:14 InnoDB: Operating system error number 13 in a file operation.

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.
031205 22:50:14 mysqld ended

请教朋友们给点建议。
...全文
2580 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
cowboyryan 2009-11-09
  • 打赏
  • 举报
回复
请朋友们指教
cowboyryan 2009-11-06
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 hulihong 的回复:]
那就是你的源码中根本没有makefile文件,看看有没有configure.in  makefile.in等其他相关文件,然后使用authoconf 和automake 执行以下,就会生成configure 和 makefile了。然后在进行后续的操作。
[/Quote]
使用auto 可以不考虑权限问题?
呵呵,提问的时候还没有google,刚接触linux 不久。
cowboyryan 2009-11-06
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 liucy1983 的回复:]
no target 。。。no targets specified and no makefile found  这句话的意思是你在configure的过程中就出错了,没有生成makefile文件

然后下面的报错是mysql server的错误,应该是说你的数据库目录没有权限创建ibdata1文件
[/Quote]
我也是觉得没有权限,但是我执行这些都是用root账号执行的。
关于权限应该怎么解决呢?
liucy1983 2009-11-05
  • 打赏
  • 举报
回复
no target 。。。no targets specified and no makefile found 这句话的意思是你在configure的过程中就出错了,没有生成makefile文件

然后下面的报错是mysql server的错误,应该是说你的数据库目录没有权限创建ibdata1文件
HULIHONG 2009-11-05
  • 打赏
  • 举报
回复
那就是你的源码中根本没有makefile文件,看看有没有configure.in makefile.in等其他相关文件,然后使用authoconf 和automake 执行以下,就会生成configure 和 makefile了。然后在进行后续的操作。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧