免费注册 查看新帖 |

Chinaunix

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

请问mysql安装问题..试过多次,没有安装成功. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-16 11:59 |只看该作者 |倒序浏览
安装mysql.
#./configure --prefix=/usr/local/mysql
.
.
.
.
.

Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
Starting mysqld daemon with databases from /data/qmail/mysql-max-3.23.53a-pc-linux-gnu-i686/data
[root@mailserver mysql-max-3.23.53a-pc-linux-gnu-i686]# 050516 11:13:57  mysqld ended

看了/data/qmail/mysql-max-3.23.53a-pc-linux-gnu-i686/data下的mailserver.silye.org.err,是:
050516 11:15:43  mysqld started
Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
If you do not want to use transactional InnoDB tables, add a line
skip-innodb
to the [mysqld] section of init parameters in your my.cnf
or my.ini. If you want to use InnoDB tables, add to the [mysqld]
section, for example,
innodb_data_file_path = ibdata1:10M:autoextend
But to get good performance you should adjust for your hardware
the InnoDB startup options listed in section 2 at
http://www.innodb.com/ibman.html
050516 11:15:43  /data/qmail/mysql-max-3.23.53a-pc-linux-gnu-i686/bin/mysqld: Can't create/write to file '/data/qmail/mysql-max-3.23
.53a-pc-linux-gnu-i686/data/mailserver.silye.org.pid' (Errcode: 13)
050516 11:15:43  /data/qmail/mysql-max-3.23.53a-pc-linux-gnu-i686/bin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
050516 11:15:43  /data/qmail/mysql-max-3.23.53a-pc-linux-gnu-i686/bin/mysqld: Error on delete of '/data/qmail/mysql-max-3.23.53a-pc-
linux-gnu-i686/data/mailserver.silye.org.pid' (Errcode: 13)
050516 11:15:43  mysqld ended

不明白是怎么回事??恳请教.

论坛徽章:
0
2 [报告]
发表于 2005-05-16 16:40 |只看该作者

请问mysql安装问题..试过多次,没有安装成功.

启动MYSQL时,加入--skip-innodb ,或者在my.cnf中按照要求在[mysqld] 段加入
innodb_data_file_path = ibdata1:10M:autoextend 。


050516 11:15:43  /data/qmail/mysql-max-3.23.53a-pc-linux-gnu-i686/bin/mysqld: Can't create/write to file '/data/qmail/mysql-max-3.23

再有就是确认是否有读写权限在MYSQL目录。
     shell>; chown -R root  .
     shell>; chown -R mysql data
     shell>; chgrp -R mysql .
再试一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP