LinuxSir.cn,穿越时空的Linuxsir!

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

求助,安装mysql出错!

[复制链接]
发表于 2004-3-23 23:57:41 | 显示全部楼层 |阅读模式
我按
二、通过源码包安装mysql
==============================================================
1.下载:当前最新最稳定的版本应该是mysql-4.0.16 ,比如我们在/opt目录下建一个临时的安装目录software,把下载下来的mysql-4.0.16.tar.gz,放到/opt/software/目录中;

[root@linuxsir01 root]# mkdir /opt/software


http://www.mysql.com/get/Downloads/....ihostunit.com/

2.解压、编译和安装:

1]解压
[root@linuxsir01 root]# cd /opt/software

[root@linuxsir01 software]# ls
mysql-4.0.16.tar.gz

[root@linuxsir01 software]#tar zxvf mysql-4.0.16.tar.gz

2]编译和安装:在这个地方值得注意的是,我们要把mysql-4.0.16安装到我们指定的目录中,为了系统和安全和优化,建议把自己用源码包安装的服务器类软件都放在/opt 目录里。所以在这里,我们就要把mysql-4.0.16也安装到/opt/mysql这个目录中;
[root@linuxsir01 software]#cd

[root@linuxsir01 software]# cd mysql-4.0.16
[root@linuxsir01 mysql-4.0.16]#
./configure --prefix=/opt/mysql --with-mysqld-user=beinan --with-charset=gb2312 --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock
安装mysql,但最后提示no acceptable c found in # patn.
请问怎么解决。
我用的是redhat AS 3
 楼主| 发表于 2004-3-24 11:55:43 | 显示全部楼层
顶~~~,有人吗?
 楼主| 发表于 2004-3-25 00:12:47 | 显示全部楼层
这个问题解决了!但有新问题:
sqlserver成功安装,却不能运行,出错如下,请帮忙
[PHP]040325 00:06:57  mysqld started
040325  0:06:58  Can't start server : Bind on unix socket: Permission denied
040325  0:06:58  Do you already have another mysqld server running on socket: /opt/mysql/var/mysql.sock ?
040325  0:06:58  Aborting

040325  0:06:58  /opt/mysql/libexec/mysqld: Shutdown Complete

040325 00:06:58  mysqld ended

040325 00:08:20  mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
040325  0:08:20  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
040325  0:08:22  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...
040325  0:08:23  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
040325  0:08:24  InnoDB: Started
040325  0:08:24  Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
040325  0:08:24  Aborting

040325  0:08:24  InnoDB: Starting shutdown...
040325  0:08:26  InnoDB: Shutdown completed
040325  0:08:26  /opt/mysql/libexec/mysqld: Shutdown Complete

040325 00:08:26  mysqld ended
[/PHP]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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