yum install mysql-server --skip-broken to work around the problem

 显示是安装冲突了看需要,卸载了,把它提示冲突的地方卸载掉就好了

rpm -qa | grep mysql

如果你系统有安装,那可以选择进行卸载:

rpm -e mysql  // 普通删除模式
rpm -e --nodeps mysql  // 强力删除模式,如果使用上面命令删除时,提示有依赖的其它文件,则用该命令可以对其进行强力删除

[root@Hadoop mysql]# yum -y remove  MySQL-server-5.6.24-1.el6.x86_64
然后

[root@Hadoop mysql]# yum install mysql-server
 

[root@Hadoop zkData]#  yum install mysql-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.47-2.el7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package MySQL-server.x86_64 0:5.6.24-1.el6 will be obsoleted
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.47-2.el7 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.47-2.el7 will be installed
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be obsoleting
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-libs.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-libs-5.6.47-2.el7.x86_64
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be obsoleting
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-client-5.6.47-2.el7.x86_64 (mysql56-community)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-libs-5.6.47-2.el7.x86_64 (mysql56-community)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
           Requires: systemd
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
1:libreoffice-ure-4.3.7.2-2.el6.x86_64 has missing requires of libjvm.so()(64bit)
[root@Hadoop zkData]#  yum install mysql-server  --skip-broken to work around the problem
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.47-2.el7.x86_64 instead
No package to available.
No package work available.
No package around available.
No package the available.
No package problem available.
Resolving Dependencies
--> Running transaction check
---> Package MySQL-server.x86_64 0:5.6.24-1.el6 will be obsoleted
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.47-2.el7 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.47-2.el7 will be installed
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be obsoleting
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-libs.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-libs-5.6.47-2.el7.x86_64
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be obsoleting
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64

Packages skipped because of dependency problems:
    mysql-community-client-5.6.47-2.el7.x86_64 from mysql56-community
    mysql-community-common-5.6.47-2.el7.x86_64 from mysql56-community
    mysql-community-libs-5.6.47-2.el7.x86_64 from mysql56-community
    mysql-community-server-5.6.47-2.el7.x86_64 from mysql56-community
    perl-DBI-1.609-4.el6.x86_64 from base
[root@Hadoop zkData]# mysq
-bash: mysq: command not found
[root@Hadoop zkData]# mysql
-bash: mysql: command not found
[root@Hadoop zkData]# mysql -u root
-bash: mysql: command not found
[root@Hadoop zkData]# 

解决方法过程:

opt/modules/hive/scripts/metastore/upgrade/mysql/hive-schema-1.2.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/hive-txn-schema-0.13.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/hive-txn-schema-0.14.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.10.0-to-0.11.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.11.0-to-0.12.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.12.0-to-0.13.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.13.0-to-0.14.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.14.0-to-1.1.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.5.0-to-0.6.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.6.0-to-0.7.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.7.0-to-0.8.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.8.0-to-0.9.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade-1.1.0-to-1.2.0.mysql.sql
/opt/modules/hive/scripts/metastore/upgrade/mysql/upgrade.order.mysql
/opt/modules/hive/scripts/metastore/upgrade/oracle/upgrade-0.10.0-to-0.11.0.mysql.sql
/opt/modules/zippacket/mysql
/opt/modules/zippacket/mysql/MySQL-client-5.6.24-1.el6.x86_64.rpm
/opt/modules/zippacket/mysql/MySQL-server-5.6.24-1.el6.x86_64.rpm
/opt/modules/zippacket/mysql/mysql-connector-java-5.1.27.tar.gz
/usr/lib/python2.6/site-packages/sos/plugins/mysql.py
/usr/lib/python2.6/site-packages/sos/plugins/mysql.pyc
/usr/lib/python2.6/site-packages/sos/plugins/mysql.pyo
/usr/lib64/mysql
/usr/lib64/libreoffice/program/libmysqllo.so
/usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0
/usr/share/mysql
/usr/share/augeas/lenses/dist/mysql.aug
/usr/share/doc/mysql-libs-5.1.73
/usr/share/doc/rsyslog-5.8.10/ommysql.html
/usr/share/doc/rsyslog-5.8.10/rsyslog_mysql.html
/usr/share/man/man5/mysql_table.5.gz
/usr/share/mysql/charsets
/usr/share/mysql/czech
/usr/share/mysql/danish
/usr/share/mysql/dutch
/usr/share/mysql/english
/usr/share/mysql/estonian
/usr/share/mysql/french
/usr/share/mysql/german
/usr/share/mysql/greek
/usr/share/mysql/hungarian
/usr/share/mysql/italian
/usr/share/mysql/japanese
/usr/share/mysql/korean
/usr/share/mysql/norwegian
/usr/share/mysql/norwegian-ny
/usr/share/mysql/polish
/usr/share/mysql/portuguese
/usr/share/mysql/romanian
/usr/share/mysql/russian
/usr/share/mysql/serbian
/usr/share/mysql/slovak
/usr/share/mysql/spanish
/usr/share/mysql/swedish
/usr/share/mysql/ukrainian
/usr/share/mysql/charsets/Index.xml
/usr/share/mysql/charsets/README
/usr/share/mysql/charsets/armscii8.xml
/usr/share/mysql/charsets/ascii.xml
/usr/share/mysql/charsets/cp1250.xml
/usr/share/mysql/charsets/cp1251.xml
/usr/share/mysql/charsets/cp1256.xml
/usr/share/mysql/charsets/cp1257.xml
/usr/share/mysql/charsets/cp850.xml
/usr/share/mysql/charsets/cp852.xml
/usr/share/mysql/charsets/cp866.xml
/usr/share/mysql/charsets/dec8.xml
/usr/share/mysql/charsets/geostd8.xml
/usr/share/mysql/charsets/greek.xml
/usr/share/mysql/charsets/hebrew.xml
/usr/share/mysql/charsets/hp8.xml
/usr/share/mysql/charsets/keybcs2.xml
/usr/share/mysql/charsets/koi8r.xml
/usr/share/mysql/charsets/koi8u.xml
/usr/share/mysql/charsets/latin1.xml
/usr/share/mysql/charsets/latin2.xml
/usr/share/mysql/charsets/latin5.xml
/usr/share/mysql/charsets/latin7.xml
/usr/share/mysql/charsets/macce.xml
/usr/share/mysql/charsets/macroman.xml
/usr/share/mysql/charsets/swe7.xml
/usr/share/mysql/czech/errmsg.sys
/usr/share/mysql/danish/errmsg.sys
/usr/share/mysql/dutch/errmsg.sys
/usr/share/mysql/english/errmsg.sys
/usr/share/mysql/estonian/errmsg.sys
/usr/share/mysql/french/errmsg.sys
/usr/share/mysql/german/errmsg.sys
/usr/share/mysql/greek/errmsg.sys
/usr/share/mysql/hungarian/errmsg.sys
/usr/share/mysql/italian/errmsg.sys
/usr/share/mysql/japanese/errmsg.sys
/usr/share/mysql/korean/errmsg.sys
/usr/share/mysql/norwegian/errmsg.sys
/usr/share/mysql/norwegian-ny/errmsg.sys
/usr/share/mysql/polish/errmsg.sys
/usr/share/mysql/portuguese/errmsg.sys
/usr/share/mysql/romanian/errmsg.sys
/usr/share/mysql/russian/errmsg.sys
/usr/share/mysql/serbian/errmsg.sys
/usr/share/mysql/slovak/errmsg.sys
/usr/share/mysql/spanish/errmsg.sys
/usr/share/mysql/swedish/errmsg.sys
/usr/share/mysql/ukrainian/errmsg.sys
/usr/share/selinux/devel/include/services/mysql.if
/usr/share/selinux/targeted/mysql.pp.bz2
/usr/share/vim/vim74/syntax/mysql.vim
/var/lib/yum/yumdb/m/a0d9b380cf692327dd60d8a0edd9583820c83f62-mysql-libs-5.1.73-7.el6-x86_64
[root@Hadoop mysql]# rpm  -qa|grep  mysql
mysql-community-release-el7-5.noarch
[root@Hadoop mysql]# rpm  -e  --nodeps  mmysql-community-release-el7-5.noarch
error: package mmysql-community-release-el7-5.noarch is not installed
[root@Hadoop mysql]# rpm  -e  --nodeps  mysql-community-release-el7-5.noarch
warning:    erase unlink of /etc/yum.repos.d/mysql-community.repo failed: No such file or directory
warning:    erase unlink of /etc/yum.repos.d/mysql-community-source.repo failed: No such file or directory
[root@Hadoop mysql]# cd  /etc/yum.repos.d/
[root@Hadoop yum.repos.d]# ls
CentOS-Base.repo       CentOS-Media.repo
CentOS-Debuginfo.repo  CentOS-Vault.repo
CentOS-fasttrack.repo
[root@Hadoop yum.repos.d]# cd   /opt/modules/
[root@Hadoop modules]# ls
allstop.sh                       hiveusedata
apache-flume-1.5.0-cdh5.3.6-bin  jdk1.8.0_144
apache-flume-1.7.0-bin           kibana-6.4.3-linux-x86_64
datas                            logstash-6.4.3
elasticsearch-6.4.3              mysql
glibc-2.14.tar.gz                startall.sh
glibc-2.14.tar.gz.1              zippacket
hadoop-2.7.2                     zkstart.sh
hive                             zookeeper-3.4.5
[root@Hadoop modules]# rpm  -e  --nodeps   mysql-community-release-el7-5.noarch
error: package mysql-community-release-el7-5.noarch is not installed
[root@Hadoop modules]# cd  /etc/yum.repos.d/
[root@Hadoop yum.repos.d]# ls
CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-fasttrack.repo  CentOS-Media.repo  CentOS-Vault.repo  mysql-community.repo  mysql-community-source.repo
[root@Hadoop yum.repos.d]# vi  mysql-community.repo 
[root@Hadoop yum.repos.d]# vi   mysql-community-source.repo 
[root@Hadoop yum.repos.d]# cd   /opt/modules/mysql/
[root@Hadoop mysql]# ls
mysql-community-release-el7-5.noarch.rpm
[root@Hadoop mysql]# yum install mysql-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
mysql-connectors-community                                                                                                                                                    | 2.5 kB     00:00     
mysql-tools-community                                                                                                                                                         | 2.5 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-8.el6_8 will be installed
--> Processing Dependency: mysql = 5.1.73-8.el6_8 for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-8.el6_8 will be installed
---> Package mysql-libs.x86_64 0:5.1.73-8.el6_8 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Processing Conflict: mysql-server-5.1.73-8.el6_8.x86_64 conflicts MySQL-server
--> Finished Dependency Resolution
Error: mysql-server conflicts with MySQL-server-5.6.24-1.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@Hadoop mysql]# yum -y remove mysql-libs-5.1*
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: mysql-libs-5.1*
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
Package(s) mysql-libs-5.1* available, but not installed.
No Packages marked for removal
[root@Hadoop mysql]# yum -y remove mysql-libs-5.6
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: mysql-libs-5.6
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
No Packages marked for removal
[root@Hadoop mysql]# yum -y remove mysql-libs-5.6*
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: mysql-libs-5.6*
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
No Packages marked for removal
[root@Hadoop mysql]# yum -y remove mysql-libs-5.*
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: mysql-libs-5.*
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
Package(s) mysql-libs-5.* available, but not installed.
No Packages marked for removal
[root@Hadoop mysql]# yum -y remove mysql-libs-5*
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: mysql-libs-5*
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
Package(s) mysql-libs-5* available, but not installed.
No Packages marked for removal
[root@Hadoop mysql]# yum install mysql-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-8.el6_8 will be installed
--> Processing Dependency: mysql = 5.1.73-8.el6_8 for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-8.el6_8 will be installed
---> Package mysql-libs.x86_64 0:5.1.73-8.el6_8 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Processing Conflict: mysql-server-5.1.73-8.el6_8.x86_64 conflicts MySQL-server
--> Finished Dependency Resolution
Error: mysql-server conflicts with MySQL-server-5.6.24-1.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@Hadoop mysql]# yum -y remove  MySQL-server-5.6.24-1.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package MySQL-server.x86_64 0:5.6.24-1.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================================
 Package                                          Arch                                       Version                                             Repository                                     Size
=====================================================================================================================================================================================================
Removing:
 MySQL-server                                     x86_64                                     5.6.24-1.el6                                        installed                                     238 M

Transaction Summary
=====================================================================================================================================================================================================
Remove        1 Package(s)

Installed size: 238 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : MySQL-server-5.6.24-1.el6.x86_64                                                                                                                                                  1/1 
  Verifying  : MySQL-server-5.6.24-1.el6.x86_64                                                                                                                                                  1/1 

Removed:
  MySQL-server.x86_64 0:5.6.24-1.el6                                                                                                                                                                 

Complete!
[root@Hadoop mysql]# yum install mysql-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.cn99.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-8.el6_8 will be installed
--> Processing Dependency: mysql = 5.1.73-8.el6_8 for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-server-5.1.73-8.el6_8.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-8.el6_8 will be installed
---> Package mysql-libs.x86_64 0:5.1.73-8.el6_8 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================================
 Package                                             Arch                                        Version                                             Repository                                 Size
=====================================================================================================================================================================================================
Installing:
 mysql-server                                        x86_64                                      5.1.73-8.el6_8                                      base                                      8.6 M
Installing for dependencies:
 mysql                                               x86_64                                      5.1.73-8.el6_8                                      base                                      895 k
 mysql-libs                                          x86_64                                      5.1.73-8.el6_8                                      base                                      1.2 M
 perl-DBD-MySQL                                      x86_64                                      4.013-3.el6                                         base                                      134 k
 perl-DBI                                            x86_64                                      1.609-4.el6                                         base                                      705 k

Transaction Summary
=====================================================================================================================================================================================================
Install       5 Package(s)

Total download size: 12 M
Installed size: 33 M
Is this ok [y/N]: Y
Downloading Packages:
(1/5): mysql-5.1.73-8.el6_8.x86_64.rpm                                                                                                                                        | 895 kB     00:00     
(2/5): mysql-libs-5.1.73-8.el6_8.x86_64.rpm                                                                                                                                   | 1.2 MB     00:00     
(3/5): mysql-server-5.1.73-8.el6_8.x86_64.rpm                                                                                                                                 | 8.6 MB     00:08     
(4/5): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm                                                                                                                                  | 134 kB     00:00     
(5/5): perl-DBI-1.609-4.el6.x86_64.rpm                                                                                                                                        | 705 kB     00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                1.2 MB/s |  12 MB     00:09     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mysql-libs-5.1.73-8.el6_8.x86_64                                                                                                                                                  1/5 
  Installing : perl-DBI-1.609-4.el6.x86_64                                                                                                                                                       2/5 
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                                                                 3/5 
  Installing : mysql-5.1.73-8.el6_8.x86_64                                                                                                                                                       4/5 
  Installing : mysql-server-5.1.73-8.el6_8.x86_64                                                                                                                                                5/5 
  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                                                                 1/5 
  Verifying  : mysql-libs-5.1.73-8.el6_8.x86_64                                                                                                                                                  2/5 
  Verifying  : mysql-server-5.1.73-8.el6_8.x86_64                                                                                                                                                3/5 
  Verifying  : mysql-5.1.73-8.el6_8.x86_64                                                                                                                                                       4/5 
  Verifying  : perl-DBI-1.609-4.el6.x86_64                                                                                                                                                       5/5 

Installed:
  mysql-server.x86_64 0:5.1.73-8.el6_8                                                                                                                                                               

Dependency Installed:
  mysql.x86_64 0:5.1.73-8.el6_8                 mysql-libs.x86_64 0:5.1.73-8.el6_8                 perl-DBD-MySQL.x86_64 0:4.013-3.el6                 perl-DBI.x86_64 0:1.609-4.el6                

Complete!
[root@Hadoop mysql]# mysqladmin   --version
mysqladmin  Ver 8.42 Distrib 5.1.73, for redhat-linux-gnu on x86_64
[root@Hadoop mysql]# MySQL-server-5.6.24-1.el6.x86_64

 

 

 

 

你可能感兴趣的:(mysql,问题总结)