新版本的mysql与旧的冲突,可以先卸载旧的再安装新的。rpm -e mysql,再执行你上面的命令。
或者使用:rpm -ivh --replacepkgs MySQL-server-standard-5.0.22-0.rhel4.i386.rpm

解决方案 »

  1.   

    对,版本冲突
    rpm -e mysql
    注意mysql大小写
      

  2.   

    我卸载也不成功,重新安装也不成功,这是怎么回事呢?难道是下载的版本不对吗?我是在个人电脑上安装的Linux 9.0下安装MySQL,应该用什么版本呢?大家看是什么原因?
    [root@qiudw MySQL]# ls -l
    total 26864
    -rw-------    1 root     root      6809494 Jun 21 08:48 MySQL-client-standard-5.
    0.22-0.rhel4.i386.rpm
    -rw-------    1 root     root      3466760 Jun 21 08:49 MySQL-devel-standard-5.0
    .22-0.rhel4.i386.rpm
    -rw-------    1 root     root     12562906 Jun 21 08:48 MySQL-server-standard-5.
    0.22-0.rhel4.i386.rpm
    -rw-------    1 root     root      2985299 Jun 21 08:49 MySQL-shared-compat-5.0.
    22-0.rhel4.i386.rpm
    -rw-------    1 root     root      1633784 Jun 21 08:48 MySQL-shared-standard-5.
    0.22-0.rhel4.i386.rpm
    [root@qiudw MySQL]# rpm -ivh --replacepkgs MySQL-server-standard-5.0.22-0.rhel4.i386.rpm
    warning: MySQL-server-standard-5.0.22-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
    Preparing...                ########################################### [100%]
            file /etc/my.cnf from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/my_print_defaults from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/myisamchk from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/myisamlog from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/myisampack from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysql_fix_privilege_tables from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysql_install_db from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysql_setpermission from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysql_zap from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysqlbug from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysqld_multi from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysqlhotcopy from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/mysqltest from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/perror from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with
    file from package mysql-3.23.54a-11
            file /usr/bin/replace from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/resolve_stack_dump from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/resolveip from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/info/mysql.info.gz from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/man/man1/mysql_zap.1.gz from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/man/man1/mysqld.1.gz from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/man/man1/mysqld_multi.1.gz from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
      

  3.   

    file /usr/share/man/man1/perror.1.gz from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/man/man1/replace.1.gz from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts with file from package mysql-3.23.54a-11
            file /usr/bin/safe_mysqld from install of MySQL-server-standard-5.0.22-0.rhel4 conflicts
    with file from package mysql-server-3.23.54a-11
    [root@qiudw MySQL]# service mysql start
    mysql: unrecognized service
    [root@qiudw MySQL]# rpm -e mysql
    error: Failed dependencies:
            libmysqlclient.so.10 is needed by (installed) libdbi-dbd-mysql-0.6.5-5
            libmysqlclient.so.10 is needed by (installed) mod_auth_mysql-1.11-12
            libmysqlclient.so.10 is needed by (installed) MySQL-python-0.9.1-6
            libmysqlclient.so.10 is needed by (installed) mysql-server-3.23.54a-11
            libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
            libmysqlclient.so.10 is needed by (installed) php-mysql-4.2.2-17
            libmysqlclient.so.10 is needed by (installed) qt-MySQL-3.1.1-6
            libmysqlclient.so.10 is needed by (installed) MyODBC-2.50.39-11
            mysql = 3.23.54a is needed by (installed) mysql-devel-3.23.54a-11
            mysql is needed by (installed) MySQL-python-0.9.1-6
            mysql = 3.23.54a is needed by (installed) mysql-server-3.23.54a-11
    [root@qiudw MySQL]#
      

  4.   

    你先试着下载它的源代码来编译安装试试吧.还是不行的话,就只能更新你的redhat系统了,redhat as 4出了一个更新的版本update 2,又或者你安装的时候不要选mysql安装试试看
    下载源代码:http://dev.mysql.com/downloads/mysql/5.0.html 这一页最下面那里,下载那个Tarball (tar.gz)
    安装的步骤如下:
    shell> groupadd mysql
    shell> useradd -g mysql mysql
    shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
    shell> cd mysql-VERSION
    shell> ./configure --prefix=/usr/local/mysql
    shell> make
    shell> make install
    shell> cp support-files/my-medium.cnf /etc/my.cnf
    shell> cd /usr/local/mysql
    shell> bin/mysql_install_db --user=mysql
    shell> chown -R root  .
    shell> chown -R mysql var
    shell> chgrp -R mysql .
    shell> bin/mysqld_safe --user=mysql &
      

  5.   

    我重新装了Linux系统,没装MySQL数据库,但是我装了Perl啊,为什么我要再装MySQL的时候,提示如下:
    error:Failed dependencies:
    perl(DBI) is needed by MySQL-server-standard-5.0.22-0.rhel3.i386
    怎样装Perl呢?在哪儿下载包呢?
      

  6.   

    在linux的第二张安装盘上http://blog.csdn.net/mathematician/archive/2006/03/31/646073.aspx