给出应急的方式,到光盘的目录下查找mysql服务器软件,
find /mnt/cdrom -type f -name '*mysql-server*'
然后进入对应目录通过rpm来安装:
cd /mnt/cdrom/Server
rpm -ivh *mysql-server*.rpm
不过本人推荐的方式,使用yum安装,这样的话会节省很多时间,因为在你安装mysql,可能会有些软件依赖需要解决。这样的做法也是一劳永逸的。以后你安装软件也会省很多事。
配置方法简单说一下吧:
网上找到对应于red hat9.0yum源的地址(真怀疑有没有)。
然后配置客户端口。
送脚本一个。粘贴运行好了。过程自己看,不细讲了。
#!/bin/bash
# 版权所有,翻录注明出处
# 2009-08-30 01:10:10 edit
echo "Please input the source of the yum(suport ftp http and local path),\nNOTICE the format of path below(Example:file:///home/update):"
read source_path
if [ ! -d "$source_path" ]; then
sed -i 's/gpgcheck=1/gpgcheck=0/' /etc/yum.conf
cd /etc/yum.repos.d/
rm -rf *repo
cat > server.repo <
name=Red Hat Enterprise Linux $releasever - $basearch - rpms
baseurl=${source_path}/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-VT]
name=Red Hat Enterprise Linux $releasever - $basearch - VT
baseurl=${source_path}/VT
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Cluster
baseurl=${source_path}/Cluster
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - ClusterStorage
baseurl=${source_path}/ClusterStorage
enabled=1
gpgcheck=0
运行脚本,输出源的地址:
如为http源请输入:http://domainname.com/path/
如果为本地源请输入:file:///directory/path
成功运行脚本后。请通过yum install mysql-server来安装mysql服务器。
最后确实建议仁兄,安装一个新版本的red hat来学习,redhat 9.0的多少人都不用了,至少也是5版本才好吧。
linux上的mysql版本有两种一种是编译好的,一种是安装的时候需要编译的,建议安装编译好的版本,因为这个版本安装很方便。
---
以上,希望对你有所帮助。
用 RH9 的都是高手,不要来问问题。
如果自知不是高手,扔了 RH9 改用 fedora 11 !
Fedora 11 安装时可以选择服务器类型的数据库服务器,里面就有 mysql 。
不知道你用的是什么linux debian跟ubuntu系统里可以在新立得软件包管理器中选择任务分组标记中的 LAMP 安装apache2 php mysql 来安装。
redhat9.0 完全安装的话,mysql是默认被安装的