---
title: "linux 下安装MySQL"
author: "chenwar"
date: "2009-02-13T20:34:16Z"
tags: []
slug: "linux-mysql"
draft: false
lastmod: "2009-02-13T20:34:16Z"
id: 332557
url: "https://chenwar.iteye.com/blog/332557"
---

linux下 安装MqSQL说难不难，但还是有一些问题还记住的。。

安装命令
rpm -ivh MySQL-server-4.0.14-0.i386.rpm
出现提示
error: Failed dependencies:
        perl(DBI) is needed by MySQL-server-community-5.0.67-0.rhel3.i386
他已经说得很清楚了，需要perl(DBI) ，于是先安装perl(DBI) 。
在linux fedora下安装perl(DBI) 很方便，点  应用程序／添加删除软件 
 在 软件管理包中选择“列表”，“搜索”，输入“perl”   选择    perl(DBI)  
系统会帮你下载安装perl(DBI) 。
之后又出现情况：
file /etc/my.cnf from install of MySQL-server-community-5.0.67-0.rhel3 conflicts with file from package mysql-libs-5.0.37-2.fc7
        file /usr/share/mysql/charsets/README from install of MySQL-server-community-5.0.67-0.rhel3 conflicts with file from package mysql-libs-5.0.37-2.fc7

卸载系统已经装有的mysql-libs与你要装的conflicts（冲突）了，把他卸载了就木油问题了
。。。
之后 netstat -nat
看到3306