QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: prouser

Red Hat enterprise 4 下安装mysql碰

[复制链接]
发表于 2005-10-27 00:47:04 | 显示全部楼层
哦,不要紧,http://www.freesys.cn/emag/vol3.pdf第3期有收录Red Hat Linux AS4安装MySQL数据库的文章
回复

使用道具 举报

 楼主| 发表于 2005-10-27 19:27:34 | 显示全部楼层
[quote:1fc9cf0d53="涩兔子"]哦,不要紧,http://www.freesys.cn/emag/vol3.pdf第3期有收录Red Hat Linux AS4安装MySQL数据库的文章 [/quote]
下了!做为资料保存。。这几天在各位帮助下进步了许多。
现在明白了,顶楼的错误一:
warning: MySQL-server-standard-4.1.14-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
        MySQL conflicts with mysql-4.1.12-3.RHEL4.1.i386

是因为server跟client不配套。

错误2:
Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-standard-4.1.14-pc-linux-gnu-i686-glibc23]# Starting mysqld daemon with databases from /ftp/mysql-standard-4.1.14-pc-linux-gnu-i686-glibc23/data
STOPPING server from pid file /ftp/mysql-standard-4.1.14-pc-linux-gnu-i686-glibc23/data/localhost.localdomain.pid
051019 17:37:43  mysqld ended

使用的是2进制的包,使用源代码包(source package)就正常了。
也希望这贴对其它筒子也有点帮助。
回复

使用道具 举报

发表于 2005-10-27 20:56:22 | 显示全部楼层
谢谢prouser的分享
回复

使用道具 举报

发表于 2005-12-7 16:30:37 | 显示全部楼层
我运行MySQL提示这是什么意思?

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
回复

使用道具 举报

发表于 2005-12-7 23:16:14 | 显示全部楼层
mysqld没有启动
/usr/local/msyql/bin/mysql_safe &user=mysql

/usr/local/mysql/share/mysql/mysql.server
回复

使用道具 举报

发表于 2005-12-8 09:56:49 | 显示全部楼层
非常感谢~
回复

使用道具 举报

发表于 2005-12-8 10:22:12 | 显示全部楼层
呵呵,得确保你的MySQL是安装在我指定的位置哦
回复

使用道具 举报

发表于 2005-12-8 12:48:10 | 显示全部楼层
就是啊,我的是AS4自带的,不知道在什么位置啊?
在你说的那里找了,没有找到。
回复

使用道具 举报

发表于 2005-12-8 13:47:45 | 显示全部楼层
whereis mysql就知道了
回复

使用道具 举报

发表于 2005-12-8 18:27:31 | 显示全部楼层
默认的是装好了,但是我准把自带的4.1删除,新下载了一个5.0的,按照如下方法安装:

首先完全卸载所有关于MySQL的rpm包,使用
rpm -qa |grep mysql
命令查看什么都没有了

然后到官方:http://dev.mysql.com/downloads/下载如下rpm包:

MySQL-server-standard-5.0.16-0.rhel4.i386.rpm
MySQL-client-standard-5.0.16-0.rhel4.i386.rpm
MySQL-devel-standard-5.0.16-0.rhel4.i386.rpm
MySQL-shared-standard-5.0.16-0.rhel4.i386.rpm

一一使用rpm -i 来安装

安装完成后使用rpm -qa |grep mysql命令查看却没有以前那样的了:
mod_auth_mysql-2.6.1-2.2
mysqlclient10-3.23.58-4.RHEL4.1
mysql-devel-4.1.10a-2.RHEL4.1
mysql-server-4.1.10a-2.RHEL4.1
mysql-bench-4.1.10a-2.RHEL4.1
mysql-4.1.10a-2.RHEL4.1
php-mysql-4.3.9-3.6
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
不知道怎么的?

不管它,然后使用
/etc/rc.d/init.d/mysql start
提示
Starting MySQL                                             [  确定  ]
启动成功

但是使用mysqladmin ping 命令查看结果是
mysqld is alive

也能使用mysql进入,应该表示MySQL 5.0已经安装成功。



但是使用phpmyadmin不能访问,提示:无法载入 mysql 扩展,请检查 PHP 配置

phpinfo也显示不支持MySQL。。。

然后看文章,复制了/usr/share/mysql/my-huge.cnf改名为my.cnf
到/etc下面

但是还是不行,我现在该怎么办?

我的PHP版本是AS4自带的4.3.9
Apache/2.0.52 (Red Hat)
回复

使用道具 举报

发表于 2005-12-8 19:51:56 | 显示全部楼层
重新编译PHP

./configure --with-mysql=你安装MySQL的路径
回复

使用道具 举报

发表于 2005-12-9 13:03:36 | 显示全部楼层
但是重新编译时出现这样的问题

make: *** 没有指明目标并且找不到 makefile。 停止。
回复

使用道具 举报

发表于 2005-12-9 14:06:59 | 显示全部楼层
configure快完毕时有错误报告吧,贴上来看看呀
回复

使用道具 举报

发表于 2005-12-9 14:32:23 | 显示全部楼层
这是最后的几句:
...
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
回复

使用道具 举报

发表于 2005-12-9 21:33:48 | 显示全部楼层
楼上去补习基础知识!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 03:40 , Processed in 0.070707 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

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