在mysql官网上下载mysql5.6 针对 red hat linux 6的rpm版本后 在 red hat 6.4下安装报 conflicts with file from package,如下:
[root@dbserver setup]# rpm -ivh MySQL-server-5.6.21-1.el6.i686.rpm
Preparing... ########################################### [100%]
file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66-
2.el6_3.i686
file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66-
2.el6_3.i686
file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66-
2.el6_3.i686
file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66-
2.el6_3.i686
file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-
5.1.66-2.el6_3.i686
file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.6.21-1.el6.i686 conflicts with file from package mysql-libs-5.1.66
-2.el6_3.i686
原因是:
libs包冲突了,前面在安装linux时,就默认安装了mysql的部分包。
解决思路
先移除冲突的libs包,再进行安装
方法为:
yum -y remove mysql-libs-5.1.52*
注:必须事先配置 yum,具体如何配置 yum,见论坛 linux板块。
[root@dbserver setup]# yum -y remove mysql-libs-5.1.*
Loaded plugins: refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-libs.i686 0:5.1.66-2.el6_3 will be erased
--> Processing Dependency: libmysqlclient.so.16 for package: 2:postfix-2.6.6-2.2.el6_1.i686
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: 2:postfix-2.6.6-2.2.el6_1.i686
--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-2.2.el6_1.i686
--> Running transaction check
---> Package postfix.i686 2:2.6.6-2.2.el6_1 will be erased
--> Processing Dependency: /usr/sbin/sendmail for package: redhat-lsb-core-4.0-7.0.1.el6.i686
--> Processing Dependency: /usr/sbin/sendmail for package: cronie-1.4.4-7.el6.i686
--> Running transaction check
---> Package cronie.i686 0:1.4.4-7.el6 will be erased
--> Processing Dependency: cronie = 1.4.4-7.el6 for package: cronie-anacron-1.4.4-7.el6.i686
---> Package redhat-lsb-core.i686 0:4.0-7.0.1.el6 will be erased
--> Processing Dependency: redhat-lsb-core(x86-32) = 4.0-7.0.1.el6 for package: redhat-lsb-4.0-7.0.1.el6.i686
--> Processing Dependency: redhat-lsb-core(x86-32) = 4.0 for package: redhat-lsb-printing-4.0-7.0.1.el6.i686
--> Processing Dependency: redhat-lsb-core(x86-32) = 4.0 for package: redhat-lsb-graphics-4.0-7.0.1.el6.i686
--> Running transaction check
---> Package cronie-anacron.i686 0:1.4.4-7.el6 will be erased
---> Package redhat-lsb.i686 0:4.0-7.0.1.el6 will be erased
--> Processing Dependency: redhat-lsb for package: ocfs2-tools-1.8.0-10.el6.i686
--> Processing Dependency: redhat-lsb(x86-32) = 4.0-7.0.1.el6 for package: redhat-lsb-compat-4.0-7.0.1.el6.i686
---> Package redhat-lsb-graphics.i686 0:4.0-7.0.1.el6 will be erased
---> Package redhat-lsb-printing.i686 0:4.0-7.0.1.el6 will be erased
--> Running transaction check
---> Package ocfs2-tools.i686 0:1.8.0-10.el6 will be erased
---> Package redhat-lsb-compat.i686 0:4.0-7.0.1.el6 will be erased
--> Processing Dependency: /etc/cron.d for package: sysstat-9.0.4-20.el6.i686
--> Processing Dependency: /etc/cron.d for package: crontabs-1.10-33.el6.noarch
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package crontabs.noarch 0:1.10-33.el6 will be erased
---> Package sysstat.i686 0:9.0.4-20.el6 will be erased
--> Processing Dependency: sysstat for package: oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.i686
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.i686 0:1.0-7.el6 will be erased
--> Finished Dependency Resolution
Repository 'Server' is missing name in configuration, using id
Server | 3.7 kB 00:00 ...
Server/primary_db | 2.4 MB 00:00 ...
Dependencies Resolved
==============================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================
Removing:
mysql-libs i686 5.1.66-2.el6_3 @anaconda-OracleLinuxServer-201302251524.i386/6.4 3.9 M
Removing for dependencies:
cronie i686 1.4.4-7.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 164 k
cronie-anacron i686 1.4.4-7.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 38 k
crontabs noarch 1.10-33.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 2.4 k
ocfs2-tools i686 1.8.0-10.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 2.7 M
oracle-rdbms-server-11gR2-preinstall i686 1.0-7.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 32 k
postfix i686 2:2.6.6-2.2.el6_1 @anaconda-OracleLinuxServer-201302251524.i386/6.4 9.3 M
redhat-lsb i686 4.0-7.0.1.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 0.0
redhat-lsb-compat i686 4.0-7.0.1.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 0.0
redhat-lsb-core i686 4.0-7.0.1.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 22 k
redhat-lsb-graphics i686 4.0-7.0.1.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 0.0
redhat-lsb-printing i686 4.0-7.0.1.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 0.0
sysstat i686 9.0.4-20.el6 @anaconda-OracleLinuxServer-201302251524.i386/6.4 784 k
Transaction Summary
==============================================================================================================================================
Remove 13 Package(s)
Installed size: 17 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.i686 1/13
Erasing : sysstat-9.0.4-20.el6.i686 2/13
Erasing : ocfs2-tools-1.8.0-10.el6.i686 3/13
Erasing : redhat-lsb-compat-4.0-7.0.1.el6.i686 4/13
Erasing : redhat-lsb-4.0-7.0.1.el6.i686 5/13
Erasing : redhat-lsb-graphics-4.0-7.0.1.el6.i686 6/13
Erasing : redhat-lsb-printing-4.0-7.0.1.el6.i686 7/13
Erasing : redhat-lsb-core-4.0-7.0.1.el6.i686 8/13
Erasing : crontabs-1.10-33.el6.noarch 9/13
/var/tmp/rpm-tmp.qTAqA6: line 1: lsb_release: command not found
Erasing : cronie-anacron-1.4.4-7.el6.i686 10/13
Erasing : cronie-1.4.4-7.el6.i686 11/13
Erasing : 2:postfix-2.6.6-2.2.el6_1.i686 12/13
Erasing : mysql-libs-5.1.66-2.el6_3.i686 13/13
Verifying : 2:postfix-2.6.6-2.2.el6_1.i686 1/13
Verifying : ocfs2-tools-1.8.0-10.el6.i686 2/13
Verifying : redhat-lsb-core-4.0-7.0.1.el6.i686 3/13
Verifying : cronie-1.4.4-7.el6.i686 4/13
Verifying : cronie-anacron-1.4.4-7.el6.i686 5/13
Verifying : redhat-lsb-printing-4.0-7.0.1.el6.i686 6/13
Verifying : oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.i686 7/13
Verifying : crontabs-1.10-33.el6.noarch 8/13
Verifying : redhat-lsb-graphics-4.0-7.0.1.el6.i686 9/13
Verifying : mysql-libs-5.1.66-2.el6_3.i686 10/13
Verifying : redhat-lsb-compat-4.0-7.0.1.el6.i686 11/13
Verifying : sysstat-9.0.4-20.el6.i686 12/13
Verifying : redhat-lsb-4.0-7.0.1.el6.i686 13/13
Removed:
mysql-libs.i686 0:5.1.66-2.el6_3
Dependency Removed:
cronie.i686 0:1.4.4-7.el6 cronie-anacron.i686 0:1.4.4-7.el6 crontabs.noarch 0:1.10-33.el6
ocfs2-tools.i686 0:1.8.0-10.el6 oracle-rdbms-server-11gR2-preinstall.i686 0:1.0-7.el6 postfix.i686 2:2.6.6-2.2.el6_1
redhat-lsb.i686 0:4.0-7.0.1.el6 redhat-lsb-compat.i686 0:4.0-7.0.1.el6 redhat-lsb-core.i686 0:4.0-7.0.1.el6
redhat-lsb-graphics.i686 0:4.0-7.0.1.el6 redhat-lsb-printing.i686 0:4.0-7.0.1.el6 sysstat.i686 0:9.0.4-20.el6
Complete!
[root@dbserver setup]#
卸载完成之后,再安装MySQL成功了
[root@dbserver setup]# rpm -ivh MySQL-server-5.6.21-1.el6.i686.rpm
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
2014-10-30 17:30:25 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option
(see documentation for more details).
2014-10-30 17:30:25 2568 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-10-30 17:30:25 2568 [Note] InnoDB: The InnoDB memory heap is disabled
2014-10-30 17:30:25 2568 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-10-30 17:30:25 2568 [Note] InnoDB: Memory barrier is not used
2014-10-30 17:30:25 2568 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-10-30 17:30:25 2568 [Note] InnoDB: Using Linux native AIO
2014-10-30 17:30:25 2568 [Note] InnoDB: Not using CPU crc32 instructions
2014-10-30 17:30:25 2568 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-10-30 17:30:25 2568 [Note] InnoDB: Completed initialization of buffer pool
2014-10-30 17:30:25 2568 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2014-10-30 17:30:25 2568 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2014-10-30 17:30:25 2568 [Note] InnoDB: Database physically writes the file full: wait...
2014-10-30 17:30:26 2568 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2014-10-30 17:30:27 2568 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2014-10-30 17:30:27 2568 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2014-10-30 17:30:27 2568 [Warning] InnoDB: New log files created, LSN=45781
2014-10-30 17:30:27 2568 [Note] InnoDB: Doublewrite buffer not found: creating new
2014-10-30 17:30:27 2568 [Note] InnoDB: Doublewrite buffer created
2014-10-30 17:30:27 2568 [Note] InnoDB: 128 rollback segment(s) are active.
2014-10-30 17:30:27 2568 [Warning] InnoDB: Creating foreign key constraint system tables.
2014-10-30 17:30:27 2568 [Note] InnoDB: Foreign key constraint system tables created
2014-10-30 17:30:27 2568 [Note] InnoDB: Creating tablespace and datafile system tables.
2014-10-30 17:30:27 2568 [Note] InnoDB: Tablespace and datafile system tables created.
2014-10-30 17:30:27 2568 [Note] InnoDB: Waiting for purge to start
2014-10-30 17:30:27 2568 [Note] InnoDB: 5.6.21 started; log sequence number 0
A random root password has been set. You will find it in '/root/.mysql_secret'.
2014-10-30 17:30:28 2568 [Note] Binlog end
2014-10-30 17:30:28 2568 [Note] InnoDB: FTS optimize thread exiting.
2014-10-30 17:30:28 2568 [Note] InnoDB: Starting shutdown...
2014-10-30 17:30:29 2568 [Note] InnoDB: Shutdown completed; log sequence number 1625977
2014-10-30 17:30:29 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option
(see documentation for more details).
2014-10-30 17:30:29 2590 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-10-30 17:30:29 2590 [Note] InnoDB: The InnoDB memory heap is disabled
2014-10-30 17:30:29 2590 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-10-30 17:30:29 2590 [Note] InnoDB: Memory barrier is not used
2014-10-30 17:30:29 2590 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-10-30 17:30:29 2590 [Note] InnoDB: Using Linux native AIO
2014-10-30 17:30:29 2590 [Note] InnoDB: Not using CPU crc32 instructions
2014-10-30 17:30:29 2590 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-10-30 17:30:29 2590 [Note] InnoDB: Completed initialization of buffer pool
2014-10-30 17:30:29 2590 [Note] InnoDB: Highest supported file format is Barracuda.
2014-10-30 17:30:29 2590 [Note] InnoDB: 128 rollback segment(s) are active.
2014-10-30 17:30:29 2590 [Note] InnoDB: Waiting for purge to start
2014-10-30 17:30:29 2590 [Note] InnoDB: 5.6.21 started; log sequence number 1625977
2014-10-30 17:30:29 2590 [Note] Binlog end
2014-10-30 17:30:29 2590 [Note] InnoDB: FTS optimize thread exiting.
2014-10-30 17:30:29 2590 [Note] InnoDB: Starting shutdown...
2014-10-30 17:30:31 2590 [Note] InnoDB: Shutdown completed; log sequence number 1625987
A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in '/root/.mysql_secret'.
You must change that password on your first connect,
no other statement but 'SET PASSWORD' will be accepted.
See the manual for the semantics of the 'password expired' flag.
Also, the account for the anonymous user has been removed.
In addition, you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test database.
This is strongly recommended for production servers.
See the manual for more instructions.
Please report any problems at http://bugs.mysql.com/
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) | Powered by Discuz! X3.2 |