Solve the problem of conflicts with file from package prompt when installing mysql in CentOS *. rpm
Install MySQL5.6 in CentOS 6.5
Decompress file: tar xvf MySQL-5.6.19-1.linux_glibc2.5.x86_64.rpm-bundle.tar
Release the following files:
MySQL-embedded-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-devel-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-shared-compat-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-shared-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-client-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-test-5.6.19-1.linux_glibc2.5.x86_64.rpm
For example:
You can use the lss command to check that the file name is red, indicating that the file has a high access permission. We use the command "chmod 777./*" to lower the permission,
777 should be the lowest permission, which is equivalent to the Windows everyone readable and executable, that is, full control.
For details, see the differences between chmod 755 and chmod 4755.
Here we only use:
MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-client-5.6.19-1.linux_glibc2.5.x86_64.rpm
Run the following command to install the SDK:
Rpm-ivh MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
The error message is as follows:
[Plain] view plaincopy
- Preparing... ######################################## ### [100%]
- File/usr/share/mysql/charsets/READMEfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/czech/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/danish/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/dutch/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/english/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/estonian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/french/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/german/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/greek/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/hungarian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/italian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/japanese/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/korean/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/norwegian-ny/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/norwegian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/polish/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/portuguese/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/romanian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/russian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/serbian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/slovak/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/spanish/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/swedish/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/ukrainian/errmsg. sysfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/Index. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/armscii8.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/ascii. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/cp1250.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/cp1251.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/cp1256.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/cp1257.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/cp850.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/cp852.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/cp866.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/dec8.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/geostd8.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/greek. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/hebrew. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/hp8.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/keybcs2.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/koi8r. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/koi8u. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/latin1.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/latin2.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/latin5.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/latin7.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/Mac. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/macroman. xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
- File/usr/share/mysql/charsets/swe7.xmlfrominstallofMySQL-server-5.6.19-1.linux_glibc2.5.x86_64conflictswithfilefrompackagemysql-libs-5.1.71-1.el6.x86_64
See "conflicts", there is a conflict, the file "/usr/share/mysql/charsets/*" requires a MySQL-server-5.6.19-1.linux_glibc2.5.x86_64 version, and the system already has a mysql-libs-5.1.71-1.el6.x86_64 version!
Solution:
Run the following command to delete the mysql-libs-5.1.71-1.el6.x86_64:
Yum-y remove mysql-libs-5.1.71 *
Run the following command to install MySQL:
Rpm-ivh MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
Everything is OK. The installation is successful.