新版本的mysql与旧的冲突,可以先卸载旧的再安装新的。rpm -e mysql,再执行你上面的命令。
或者使用:rpm -ivh --replacepkgs MySQL-server-standard-5.0.22-0.rhel4.i386.rpm
或者使用:rpm -ivh --replacepkgs MySQL-server-standard-5.0.22-0.rhel4.i386.rpm
解决方案 »
- Windows 2003 mysql 执行备份命令后 没有数据
- 通过SQL语句正则替换数据库表的问题!!
- 求一款支持win的检测主从同步延迟、主从数据是否一致等功能的工具
- 很急,高人进,mySql数据库定时自动计算,存贮数据表功能。
- 一个查询语句的效率问题
- MYSQL4 有没有能存999,999,000这样格式的方法.而且要能计算的!
- 了解一下MYSQL的承受力!
- 急求数据库高手帮助!解决难题:Access数据库转换为Mysql+ASE的数据库。
- Mysql用LOAD DTA INFILE导入数据
- 关于数据库的一道面试题,求指教
- 请问大、中、小型项目是用什么标准衡量的?
- delphi中用dbExpress连接mysql数据库出错
rpm -e mysql
注意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
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]#
下载源代码: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 &
error:Failed dependencies:
perl(DBI) is needed by MySQL-server-standard-5.0.22-0.rhel3.i386
怎样装Perl呢?在哪儿下载包呢?