如何设置才能直接 yum install mysql-server运行安装mysql

lilinew 2010-01-15 08:19:21
我搞了一台虚拟机器centos5
奇怪机器执行下面的俄命令
yum install mysql-server
就可以安装数据库
(想知道这个是如何在本os里设置 的 --直觉这个绝对是设置了的
我另外一台机器上的红帽3却不能这样作
...全文
1008 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liucy1983 2010-01-23
  • 打赏
  • 举报
回复
是怎么不能这么做了,报什么错???
lilinew 2010-01-22
  • 打赏
  • 举报
回复
yum源
在 /etc /yum.repos.d:/
你自己定一点 my.repo


# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]

[Base]
name=CentOS-$releasever - Media
baseurl=http://10.0.4.1/pxe/
gpgcheck=0
enabled=1
gpgkey=file:///etc/RPM-GPG-KEY-CentOS-5

这里定义了安装文件的db的地址


奇怪 为身没有人回答
军爷_010 2010-01-15
  • 打赏
  • 举报
回复
学习。。。

56,679

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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