• CentOS 7安装MySQL 5.6.35


    MySQL 5.6.35的下载

    https://dev.mysql.com/downloads/mysql/5.6.html


    [root@localhost home]# wget  https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar
    --2017-02-12 14:55:43--  https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar
    正在解析主机 dev.mysql.com (dev.mysql.com)... 137.254.60.11
    正在连接 dev.mysql.com (dev.mysql.com)|137.254.60.11|:443... 已连接。
    已发出 HTTP 请求,正在等待回应... 302 Found
    位置:https://cdn.mysql.com//Downloads/MySQL-5.6/MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar [跟随至新的 URL]
    --2017-02-12 14:55:44--  https://cdn.mysql.com//Downloads/MySQL-5.6/MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar
    正在解析主机 cdn.mysql.com (cdn.mysql.com)... 23.211.97.88
    正在连接 cdn.mysql.com (cdn.mysql.com)|23.211.97.88|:443... 已连接。
    已发出 HTTP 请求,正在等待回应... 200 OK
    长度:319324160 (305M) [application/x-tar]
    正在保存至: “MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar”
    
    
     5% [==>                                                           ] 16,511,845  1.07MB/s 剩余 4m 26s 
    

    解压文件:MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar

    [root@localhost 桌面]# tar  -xvf MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar 
    MySQL-devel-5.6.35-1.linux_glibc2.5.x86_64.rpm
    MySQL-test-5.6.35-1.linux_glibc2.5.x86_64.rpm
    MySQL-shared-5.6.35-1.linux_glibc2.5.x86_64.rpm
    MySQL-shared-compat-5.6.35-1.linux_glibc2.5.x86_64.rpm
    MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm
    MySQL-embedded-5.6.35-1.linux_glibc2.5.x86_64.rpm
    MySQL-client-5.6.35-1.linux_glibc2.5.x86_64.rpm
    解压后,进行安装:
    [root@localhost 桌面]# rpm -ivh MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm
    警告:MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY准备中... ################################# [100%]file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64  
     conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/danish/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/estonian/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/greek/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/japanese/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/norwegian/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/romanian/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/slovak/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/ukrainian/errmsg.sys  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/ascii.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/cp1256.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/cp852.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/geostd8.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/hp8.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/koi8u.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/latin5.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/macroman.xml  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-libs-1:5.5.44-2.el7.centos.x86_64file /usr/bin/my_print_defaults from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/my_print_defaults.1.gz  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-1:5.5.44-2.el7.centos.x86_64file /usr/bin/innochecksum from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/bin/myisam_ftdump from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/myisamchk from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with  
     file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/myisamlog from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/myisampack from install  
     of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_convert_table_format from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package  
     mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_fix_extensions from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_install_db from install  
     of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_plugin from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/bin/mysql_secure_installation from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_setpermission from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64  
     conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_tzinfo_to_sql from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_upgrade  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysql_zap from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/bin/mysqld_multi from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysqld_safe from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with  
     file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysqldumpslow from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysqlhotcopy from  
     install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/mysqltest from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/bin/perror from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/replace from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from  
     package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/resolve_stack_dump from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/bin/resolveip from install  
     of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/adt_null.so from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package  
     mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/auth_socket.so from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/auth_test_plugin.so  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/daemon_example.ini from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with  
     file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/libdaemon_example.so from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/mypluglib.so  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/qa_auth_client.so from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with  
     file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/qa_auth_interface.so from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/qa_auth_server.so  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/semisync_master.so from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with  
     file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/lib64/mysql/plugin/semisync_slave.so from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/innochecksum.1.gz  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/myisam_ftdump.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/myisamchk.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/myisamlog.1.gz  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/myisampack.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file  
     from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql.server.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_convert_table_format.1.gz  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_fix_extensions.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts  
     with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_install_db.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_plugin.1.gz  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_secure_installation.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts  
     with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_setpermission.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/share/man/man1/mysql_tzinfo_to_sql.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_upgrade.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64  
     conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysql_zap.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/share/man/man1/mysqlbug.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysqld_multi.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64  
     conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysqld_safe.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/share/man/man1/mysqldumpslow.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysqlhotcopy.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64  
     conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/mysqltest.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/share/man/man1/perror.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/replace.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64  
     conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man1/resolve_stack_dump.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file  
     /usr/share/man/man1/resolveip.1.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/man/man8/mysqld.8.gz from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64  
     conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/errmsg-utf8.txt from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/fill_help_tables.sql  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/mysql_system_tables.sql from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with  
     file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/mysql_system_tables_data.sql from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64file /usr/share/mysql/mysql_test_data_timezone.sql  
     from install of MySQL-server-5.6.35-1.linux_glibc2.5.x86_64 conflicts with file from package mariadb-server-1:5.5.44-2.el7.centos.x86_64  
    报错,原因是系统已经安装了其他版本的mysql-libs包导致不兼容,分两步处理:


    [root@localhost 桌面]#yum  list|grep   mysql 
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast  
    akonadi-mysql.x86_64                    1.9.2-4.el7                    @anaconda  
    pcp-pmda-mysql.x86_64                   3.10.6-2.el7                   @anaconda  
    qt-mysql.x86_64                         1:4.8.5-11.el7                 @anaconda  
    apr-util-mysql.x86_64                   1.5.2-6.el7                    base       
    dovecot-mysql.x86_64                    1:2.2.10-7.el7                 base       
    freeradius-mysql.x86_64                 3.0.4-6.el7                    base       
    libdbi-dbd-mysql.x86_64                 0.8.3-16.el7                   base       
    mysql-connector-java.noarch             1:5.1.25-3.el7                 base       
    mysql-connector-odbc.x86_64             5.2.5-6.el7                    base       
    pcp-pmda-mysql.x86_64                   3.11.3-4.el7                   base       
    php-mysql.x86_64                        5.4.16-42.el7                  base       
    php-mysqlnd.x86_64                      5.4.16-42.el7                  base       
    qt-mysql.i686                           1:4.8.5-13.el7                 base       
    qt-mysql.x86_64                         1:4.8.5-13.el7                 base       
    qt5-qtbase-mysql.i686                   5.6.1-10.el7                   base       
    qt5-qtbase-mysql.x86_64                 5.6.1-10.el7                   base       
    redland-mysql.x86_64                    1.0.16-6.el7                   base       
    rsyslog-mysql.x86_64                    7.4.7-16.el7                   base
    [root@localhost 桌面]#yum remove mysql-libs 
    已加载插件:fastestmirror, langpacks  
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast  
    正在解决依赖关系  
    --> 正在检查事务  
    ---> 软件包 mariadb-libs.x86_64.1.5.5.44-2.el7.centos 将被 删除  
    --> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 perl-DBD-MySQL-4.023-5.el7.x86_64 需要  
    --> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 2:postfix-2.10.1-6.el7.x86_64 需要  
    --> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 1:qt-mysql-4.8.5-11.el7.x86_64 需要  
    --> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 1:net-snmp-5.7.2-24.el7.x86_64 需要  
    --> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 perl-DBD-MySQL-4.023-5.el7.x86_64 需要  
    --> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 2:postfix-2.10.1-6.el7.x86_64 需要  
    --> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 1:qt-mysql-4.8.5-11.el7.x86_64 需要  
    --> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos,它被软件包 1:mariadb-server-5.5.44-2.el7.centos.x86_64 需要  
    --> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos,它被软件包 1:mariadb-5.5.44-2.el7.centos.x86_64 需要  
    --> 正在处理依赖关系 mysql-libs,它被软件包 1:net-snmp-5.7.2-24.el7.x86_64 需要  
    --> 正在检查事务  
    ---> 软件包 mariadb.x86_64.1.5.5.44-2.el7.centos 将被 删除  
    ---> 软件包 mariadb-server.x86_64.1.5.5.44-2.el7.centos 将被 删除  
    --> 正在处理依赖关系 mariadb-server,它被软件包 akonadi-mysql-1.9.2-4.el7.x86_64 需要  
    ---> 软件包 net-snmp.x86_64.1.5.7.2-24.el7 将被 删除  
    ---> 软件包 perl-DBD-MySQL.x86_64.0.4.023-5.el7 将被 删除  
    ---> 软件包 postfix.x86_64.2.2.10.1-6.el7 将被 删除  
    --> 正在处理依赖关系 postfix = 2:2.10.1-6.el7,它被软件包 2:postfix-perl-scripts-2.10.1-6.el7.x86_64 需要  
    ---> 软件包 qt-mysql.x86_64.1.4.8.5-11.el7 将被 删除  
    --> 正在检查事务  
    ---> 软件包 akonadi-mysql.x86_64.0.1.9.2-4.el7 将被 删除  
    ---> 软件包 postfix-perl-scripts.x86_64.2.2.10.1-6.el7 将被 删除  
    --> 正在处理依赖关系 postfix-perl-scripts,它被软件包 pcp-pmda-postfix-3.10.6-2.el7.x86_64 需要  
    --> 正在检查事务  
    ---> 软件包 pcp-pmda-postfix.x86_64.0.3.10.6-2.el7 将被 删除  
    --> 正在处理依赖关系 pcp-pmda-postfix,它被软件包 pcp-compat-3.10.6-2.el7.x86_64 需要  
    --> 正在检查事务  
    ---> 软件包 pcp-compat.x86_64.0.3.10.6-2.el7 将被 删除  
    --> 正在处理依赖关系 pcp-compat,它被软件包 pcp-3.10.6-2.el7.x86_64 需要  
    --> 正在检查事务  
    ---> 软件包 pcp.x86_64.0.3.10.6-2.el7 将被 删除  
    --> 正在处理依赖关系 pcp = 3.10.6-2.el7,它被软件包 pcp-pmda-summary-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 pcp = 3.10.6-2.el7,它被软件包 pcp-pmda-sendmail-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 pcp = 3.10.6-2.el7,它被软件包 pcp-pmda-weblog-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 pcp = 3.10.6-2.el7,它被软件包 pcp-pmda-lustrecomm-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 pcp = 3.10.6-2.el7,它被软件包 pcp-pmda-rpm-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 pcp = 3.10.6-2.el7,它被软件包 python-pcp-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 pcp = 3.10.6-2.el7,它被软件包 pcp-pmda-roomtemp-3.10.6-2.el7.x86_64 需要  
    --> 正在检查事务  
    ---> 软件包 pcp-pmda-lustrecomm.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-roomtemp.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-rpm.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-sendmail.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-summary.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-weblog.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 python-pcp.x86_64.0.3.10.6-2.el7 将被 删除  
    --> 正在处理依赖关系 python-pcp = 3.10.6-2.el7,它被软件包 pcp-system-tools-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 python-pcp,它被软件包 pcp-pmda-gluster-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 python-pcp,它被软件包 pcp-pmda-json-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 python-pcp,它被软件包 pcp-pmda-zswap-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 python-pcp = 3.10.6-2.el7,它被软件包 pcp-export-pcp2graphite-3.10.6-2.el7.x86_64 需要  
    --> 正在处理依赖关系 python-pcp,它被软件包 pcp-pmda-unbound-3.10.6-2.el7.x86_64 需要  
    --> 正在检查事务  
    ---> 软件包 pcp-export-pcp2graphite.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-gluster.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-json.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-unbound.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-pmda-zswap.x86_64.0.3.10.6-2.el7 将被 删除  
    ---> 软件包 pcp-system-tools.x86_64.0.3.10.6-2.el7 将被 删除  
    --> 解决依赖关系完成  
    base/7/x86_64                                                                                                        | 3.6 kB  00:00:00       
    extras/7/x86_64                                                                                                      | 3.4 kB  00:00:00       
    extras/7/x86_64/primary_db                                                                                           | 121 kB  00:00:00       
    updates/7/x86_64                                                                                                     | 3.4 kB  00:00:00       
    updates/7/x86_64/primary_db                                                                                          | 2.2 MB  00:00:00       
      
    依赖关系解决  
      
    ============================================================================================================================================  
     Package                                  架构                    版本                                     源                          大小  
    ============================================================================================================================================  
    正在删除:  
     mariadb-libs                             x86_64                  1:5.5.44-2.el7.centos                    @anaconda                  4.4 M  
    为依赖而移除:  
     akonadi-mysql                            x86_64                  1.9.2-4.el7                              @anaconda                  9.6 k  
     mariadb                                  x86_64                  1:5.5.44-2.el7.centos                    @anaconda                   48 M  
     mariadb-server                           x86_64                  1:5.5.44-2.el7.centos                    @anaconda                   56 M  
     net-snmp                                 x86_64                  1:5.7.2-24.el7                           @anaconda                  850 k  
     pcp                                      x86_64                  3.10.6-2.el7                             @anaconda                  2.9 M  
     pcp-compat                               x86_64                  3.10.6-2.el7                             @anaconda                  0.0    
     pcp-export-pcp2graphite                  x86_64                  3.10.6-2.el7                             @anaconda                   12 k  
     pcp-pmda-gluster                         x86_64                  3.10.6-2.el7                             @anaconda                   17 k  
     pcp-pmda-json                            x86_64                  3.10.6-2.el7                             @anaconda                   66 k  
     pcp-pmda-lustrecomm                      x86_64                  3.10.6-2.el7                             @anaconda                   26 k  
     pcp-pmda-postfix                         x86_64                  3.10.6-2.el7                             @anaconda                  8.6 k  
     pcp-pmda-roomtemp                        x86_64                  3.10.6-2.el7                             @anaconda                   31 k  
     pcp-pmda-rpm                             x86_64                  3.10.6-2.el7                             @anaconda                   45 k  
     pcp-pmda-sendmail                        x86_64                  3.10.6-2.el7                             @anaconda                   39 k  
     pcp-pmda-summary                         x86_64                  3.10.6-2.el7                             @anaconda                   34 k  
     pcp-pmda-unbound                         x86_64                  3.10.6-2.el7                             @anaconda                   66 k  
     pcp-pmda-weblog                          x86_64                  3.10.6-2.el7                             @anaconda                  159 k  
     pcp-pmda-zswap                           x86_64                  3.10.6-2.el7                             @anaconda                  9.0 k  
     pcp-system-tools                         x86_64                  3.10.6-2.el7                             @anaconda                  261 k  
     perl-DBD-MySQL                           x86_64                  4.023-5.el7                              @anaconda                  323 k  
     postfix                                  x86_64                  2:2.10.1-6.el7                           @anaconda                   12 M  
     postfix-perl-scripts                     x86_64                  2:2.10.1-6.el7                           @anaconda                  109 k  
     python-pcp                               x86_64                  3.10.6-2.el7                             @anaconda                  400 k  
     qt-mysql                                 x86_64                  1:4.8.5-11.el7                           @anaconda                   74 k  
      
    事务概要  
    ============================================================================================================================================  
    移除  1 软件包 (+24 依赖软件包)  
      
    安装大小:126 M  
    是否继续?[y/N]:Y  
    Downloading packages:  
    Running transaction check  
    Running transaction test  
    Transaction test succeeded  
    Running transaction  
      正在删除    : akonadi-mysql-1.9.2-4.el7.x86_64                                                                                       1/25   
      正在删除    : 1:mariadb-server-5.5.44-2.el7.centos.x86_64                                                                            2/25   
    警告:文件 /var/lib/mysql: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/mysql_test_data_timezone.sql: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/mysql_system_tables_data.sql: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/mysql_system_tables.sql: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/mysql_performance_tables.sql: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/my-small.cnf: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/my-medium.cnf: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/my-large.cnf: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/my-innodb-heavy-4G.cnf: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/my-huge.cnf: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/fill_help_tables.sql: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/errmsg-utf8.txt: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/README.mysql-cnf: 移除失败: 没有那个文件或目录  
      正在删除    : 1:mariadb-5.5.44-2.el7.centos.x86_64                                                                                   3/25   
      正在删除    : perl-DBD-MySQL-4.023-5.el7.x86_64                                                                                      4/25   
      正在删除    : 1:qt-mysql-4.8.5-11.el7.x86_64                                                                                         5/25   
      正在删除    : pcp-pmda-roomtemp-3.10.6-2.el7.x86_64                                                                                  6/25   
      正在删除    : pcp-pmda-sendmail-3.10.6-2.el7.x86_64                                                                                  7/25   
      正在删除    : pcp-pmda-lustrecomm-3.10.6-2.el7.x86_64                                                                                8/25   
      正在删除    : pcp-pmda-gluster-3.10.6-2.el7.x86_64                                                                                   9/25   
      正在删除    : pcp-pmda-zswap-3.10.6-2.el7.x86_64                                                                                    10/25   
      正在删除    : pcp-pmda-unbound-3.10.6-2.el7.x86_64                                                                                  11/25   
      正在删除    : pcp-system-tools-3.10.6-2.el7.x86_64                                                                                  12/25   
      正在删除    : pcp-export-pcp2graphite-3.10.6-2.el7.x86_64                                                                           13/25   
      正在删除    : pcp-pmda-json-3.10.6-2.el7.x86_64                                                                                     14/25   
      正在删除    : pcp-pmda-summary-3.10.6-2.el7.x86_64                                                                                  15/25   
      正在删除    : pcp-pmda-weblog-3.10.6-2.el7.x86_64                                                                                   16/25   
      正在删除    : pcp-compat-3.10.6-2.el7.x86_64                                                                                        17/25   
      正在删除    : pcp-pmda-rpm-3.10.6-2.el7.x86_64                                                                                      18/25   
      正在删除    : python-pcp-3.10.6-2.el7.x86_64                                                                                        19/25   
      正在删除    : pcp-3.10.6-2.el7.x86_64                                                                                               20/25   
      正在删除    : pcp-pmda-postfix-3.10.6-2.el7.x86_64                                                                                  21/25   
      正在删除    : 2:postfix-perl-scripts-2.10.1-6.el7.x86_64                                                                            22/25   
      正在删除    : 2:postfix-2.10.1-6.el7.x86_64                                                                                         23/25   
      正在删除    : 1:net-snmp-5.7.2-24.el7.x86_64                                                                                        24/25   
      正在删除    : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64                                                                             25/25   
    警告:文件 /usr/share/mysql/ukrainian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/ukrainian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/swedish/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/swedish: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/spanish/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/spanish: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/slovak/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/slovak: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/serbian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/serbian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/russian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/russian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/romanian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/romanian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/portuguese/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/portuguese: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/polish/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/polish: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/norwegian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/norwegian-ny/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/norwegian-ny: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/norwegian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/korean/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/korean: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/japanese/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/japanese: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/italian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/italian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/hungarian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/hungarian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/greek/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/greek: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/german/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/german: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/french/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/french: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/estonian/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/estonian: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/english/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/english: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/dutch/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/dutch: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/danish/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/danish: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/czech/errmsg.sys: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/czech: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/swe7.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/macroman.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/macce.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/latin7.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/latin5.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/latin2.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/latin1.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/koi8u.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/koi8r.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/keybcs2.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/hp8.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/hebrew.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/greek.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/geostd8.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/dec8.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/cp866.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/cp852.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/cp850.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/cp1257.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/cp1256.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/cp1251.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/cp1250.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/ascii.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/armscii8.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/README: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets/Index.xml: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql/charsets: 移除失败: 没有那个文件或目录  
    警告:文件 /usr/share/mysql: 移除失败: 没有那个文件或目录  
      验证中      : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64                                                                              1/25   
      验证中      : pcp-pmda-rpm-3.10.6-2.el7.x86_64                                                                                       2/25   
      验证中      : 1:mariadb-5.5.44-2.el7.centos.x86_64                                                                                   3/25   
      验证中      : akonadi-mysql-1.9.2-4.el7.x86_64                                                                                       4/25   
      验证中      : 1:mariadb-server-5.5.44-2.el7.centos.x86_64                                                                            5/25   
      验证中      : pcp-pmda-summary-3.10.6-2.el7.x86_64                                                                                   6/25   
      验证中      : pcp-3.10.6-2.el7.x86_64                                                                                                7/25   
      验证中      : 2:postfix-2.10.1-6.el7.x86_64                                                                                          8/25   
      验证中      : pcp-export-pcp2graphite-3.10.6-2.el7.x86_64                                                                            9/25   
      验证中      : pcp-pmda-roomtemp-3.10.6-2.el7.x86_64                                                                                 10/25   
      验证中      : pcp-pmda-postfix-3.10.6-2.el7.x86_64                                                                                  11/25   
      验证中      : pcp-pmda-gluster-3.10.6-2.el7.x86_64                                                                                  12/25   
      验证中      : pcp-compat-3.10.6-2.el7.x86_64                                                                                        13/25   
      验证中      : pcp-pmda-json-3.10.6-2.el7.x86_64                                                                                     14/25   
      验证中      : perl-DBD-MySQL-4.023-5.el7.x86_64                                                                                     15/25   
      验证中      : pcp-pmda-unbound-3.10.6-2.el7.x86_64                                                                                  16/25   
      验证中      : 2:postfix-perl-scripts-2.10.1-6.el7.x86_64                                                                            17/25   
      验证中      : pcp-pmda-zswap-3.10.6-2.el7.x86_64                                                                                    18/25   
      验证中      : 1:qt-mysql-4.8.5-11.el7.x86_64                                                                                        19/25   
      验证中      : pcp-pmda-lustrecomm-3.10.6-2.el7.x86_64                                                                               20/25   
      验证中      : pcp-pmda-sendmail-3.10.6-2.el7.x86_64                                                                                 21/25   
      验证中      : pcp-system-tools-3.10.6-2.el7.x86_64                                                                                  22/25   
      验证中      : 1:net-snmp-5.7.2-24.el7.x86_64                                                                                        23/25   
      验证中      : python-pcp-3.10.6-2.el7.x86_64                                                                                        24/25   
      验证中      : pcp-pmda-weblog-3.10.6-2.el7.x86_64                                                                                   25/25   
      
    删除:  
      mariadb-libs.x86_64 1:5.5.44-2.el7.centos                                                                                                   
      
    作为依赖被删除:  
      akonadi-mysql.x86_64 0:1.9.2-4.el7               mariadb.x86_64 1:5.5.44-2.el7.centos       mariadb-server.x86_64 1:5.5.44-2.el7.centos     
      net-snmp.x86_64 1:5.7.2-24.el7                   pcp.x86_64 0:3.10.6-2.el7                  pcp-compat.x86_64 0:3.10.6-2.el7                
      pcp-export-pcp2graphite.x86_64 0:3.10.6-2.el7    pcp-pmda-gluster.x86_64 0:3.10.6-2.el7     pcp-pmda-json.x86_64 0:3.10.6-2.el7             
      pcp-pmda-lustrecomm.x86_64 0:3.10.6-2.el7        pcp-pmda-postfix.x86_64 0:3.10.6-2.el7     pcp-pmda-roomtemp.x86_64 0:3.10.6-2.el7         
      pcp-pmda-rpm.x86_64 0:3.10.6-2.el7               pcp-pmda-sendmail.x86_64 0:3.10.6-2.el7    pcp-pmda-summary.x86_64 0:3.10.6-2.el7          
      pcp-pmda-unbound.x86_64 0:3.10.6-2.el7           pcp-pmda-weblog.x86_64 0:3.10.6-2.el7      pcp-pmda-zswap.x86_64 0:3.10.6-2.el7            
      pcp-system-tools.x86_64 0:3.10.6-2.el7           perl-DBD-MySQL.x86_64 0:4.023-5.el7        postfix.x86_64 2:2.10.1-6.el7                   
      postfix-perl-scripts.x86_64 2:2.10.1-6.el7       python-pcp.x86_64 0:3.10.6-2.el7           qt-mysql.x86_64 1:4.8.5-11.el7                  
    完毕!  
    再次执行安装
    经过上面两步后,再次安装:
    [root@localhost 桌面]#rpm -ivh MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm  
    警告:MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY  
    准备中...                          ################################# [100%]  
    正在升级/安装...  
       1:MySQL-server-5.6.35-1.linux_glibc################################# [100%]  
    2017-02-10 17:04:09 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).  
    2017-02-10 17:04:09 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.  
    2017-02-10 17:04:09 0 [Note] /usr/sbin/mysqld (mysqld 5.6.35) starting as process 7283 ...  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Using atomics to ref count buffer pool pages  
    2017-02-10 17:04:09 7283 [Note] InnoDB: The InnoDB memory heap is disabled  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Memory barrier is not used  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Compressed tables use zlib 1.2.3  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Using Linux native AIO  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Using CPU crc32 instructions  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Initializing buffer pool, size = 128.0M  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Completed initialization of buffer pool  
    2017-02-10 17:04:09 7283 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Database physically writes the file full: wait...  
    2017-02-10 17:04:09 7283 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB  
    2017-02-10 17:04:15 7283 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB  
    2017-02-10 17:04:16 7283 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0  
    2017-02-10 17:04:16 7283 [Warning] InnoDB: New log files created, LSN=45781  
    2017-02-10 17:04:16 7283 [Note] InnoDB: Doublewrite buffer not found: creating new  
    2017-02-10 17:04:16 7283 [Note] InnoDB: Doublewrite buffer created  
    2017-02-10 17:04:16 7283 [Note] InnoDB: 128 rollback segment(s) are active.  
    2017-02-10 17:04:16 7283 [Warning] InnoDB: Creating foreign key constraint system tables.  
    2017-02-10 17:04:16 7283 [Note] InnoDB: Foreign key constraint system tables created  
    2017-02-10 17:04:16 7283 [Note] InnoDB: Creating tablespace and datafile system tables.  
    2017-02-10 17:04:16 7283 [Note] InnoDB: Tablespace and datafile system tables created.  
    2017-02-10 17:04:16 7283 [Note] InnoDB: Waiting for purge to start  
    2017-02-10 17:04:16 7283 [Note] InnoDB: 5.6.35 started; log sequence number 0  
    A random root password has been set. You will find it in '/root/.mysql_secret'.  
    2017-02-10 17:04:17 7283 [Note] Binlog end  
    2017-02-10 17:04:17 7283 [Note] InnoDB: FTS optimize thread exiting.  
    2017-02-10 17:04:17 7283 [Note] InnoDB: Starting shutdown...  
    2017-02-10 17:04:18 7283 [Note] InnoDB: Shutdown completed; log sequence number 1625977  
    2017-02-10 17:04:18 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).  
    2017-02-10 17:04:18 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.  
    2017-02-10 17:04:18 0 [Note] /usr/sbin/mysqld (mysqld 5.6.35) starting as process 7305 ...  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Using atomics to ref count buffer pool pages  
    2017-02-10 17:04:18 7305 [Note] InnoDB: The InnoDB memory heap is disabled  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Memory barrier is not used  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Compressed tables use zlib 1.2.3  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Using Linux native AIO  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Using CPU crc32 instructions  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Initializing buffer pool, size = 128.0M  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Completed initialization of buffer pool  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Highest supported file format is Barracuda.  
    2017-02-10 17:04:18 7305 [Note] InnoDB: 128 rollback segment(s) are active.  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Waiting for purge to start  
    2017-02-10 17:04:18 7305 [Note] InnoDB: 5.6.35 started; log sequence number 1625977  
    2017-02-10 17:04:18 7305 [Note] Binlog end  
    2017-02-10 17:04:18 7305 [Note] InnoDB: FTS optimize thread exiting.  
    2017-02-10 17:04:18 7305 [Note] InnoDB: Starting shutdown...  
    2017-02-10 17:04:20 7305 [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 
    安装完成,后面的提示语句的意思二点:
    ①MySQL root用户的随机密码已经设置:/root/.mysql_secret

    ②默认配置文件创建在:/usr/my.cnf

    打开 /root/.mysql_secret  文件查看  &  启动mysql服务 &  登陆  &   修改mysql root密码:

    [root@localhost home]# vim /root/.mysql_secret
    # The random password set for the root user at Fri Feb 10 17:04:17 2017 (local time): YwupyhmtGlZmZ29A
    ~
    ~
    ~
    [root@localhost 桌面]# service mysql start
    Starting MySQL... SUCCESS! 
    [root@localhost 桌面]# netstat -lntp | grep 3306
    tcp6       0      0 :::3306                 :::*                    LISTEN      11669/mysqld   	
    [root@localhost 桌面]# mysql
    bash: mysql: 未找到命令...
    mysql命令无效,你想是什么原因。你先想下,看下面你就知道了。

    [root@localhost 桌面]# rpm  -ihv  MySQL-client-5.6.35-1.linux_glibc2.5.x86_64.rpm 
    警告:MySQL-client-5.6.35-1.linux_glibc2.5.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY
    准备中...                          ################################# [100%]
    	软件包 MySQL-client-5.6.35-1.linux_glibc2.5.x86_64 已经安装
    安装MySQL-client-5.6.35-1.linux_glibc2.5.x86_64.rpm后,再次运行mysql命令。

    [root@localhost 桌面]# mysql -uroot -p
    Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 2
    Server version: 5.6.35
    
    Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
    
    mysql> SET PASSWORD = PASSWORD('beijing520');
    Query OK, 0 rows affected (0.02 sec)
    
    mysql> Status;
    --------------
    mysql  Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using  EditLine wrapper
    
    Connection id:		2
    Current database:	mysql
    Current user:		root@localhost
    SSL:			Not in use
    Current pager:		stdout
    Using outfile:		''
    Using delimiter:	;
    Server version:		5.6.35
    Protocol version:	10
    Connection:		Localhost via UNIX socket
    Server characterset:	latin1
    Db     characterset:	latin1
    Client characterset:	utf8
    Conn.  characterset:	utf8
    UNIX socket:		/var/lib/mysql/mysql.sock
    Uptime:			31 min 42 sec
    
    Threads: 1  Questions: 49  Slow queries: 0  Opens: 87  Flush tables: 1  Open tables: 80  Queries per second avg: 0.025
    --------------
    
    mysql> flush privileges;
    
    mysql> quit;
    Bye

    对/usr/my.cnf 进行备份和修改默认配置。

    [root@localhost /]# cp  /usr/my.cnf  /usr/my.cnf.bak
    [root@localhost /]# vim /usr/my.cnf 
    ol_size = 128M
    
    # Remove leading # to turn on a very important data integrity option: logging
    # changes to the binary log between backups.
    # log_bin
    
    # These are commonly set, remove the # and set as required.
    # basedir = .....
    # datadir = .....
    # port = .....
    # server_id = .....
    # socket = .....
    
    # Remove leading # to set options mainly useful for reporting servers.
    # The server defaults are faster for transactions and fast SELECTs.
    # Adjust sizes as needed, experiment to find the optimal values.
    # join_buffer_size = 128M
    # sort_buffer_size = 2M
    # read_rnd_buffer_size = 2M 
    
    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
    

    datadir = /datacenter/mysql
    port = 3306

    join_buffer_size = 128M
    sort_buffer_size = 2M
    read_rnd_buffer_size = 2M

    expire_logs_days = 5
    max_binlog_size = 1000M
    log-error=/datacenter/mysql/log/error.log


    至此,简要安装5.6.35结束,高级优化待继续.......






























  • 相关阅读:
    抱歉
    The area
    sort
    Problem D
    Problem B
    错排
    第8集 仪表开关电源照明原理图
    第7集 驱动与电气原理图绘制
    第6集 初步使用EPLAN部件库部件功能
    第5集 软件中建立项目结构
  • 原文地址:https://www.cnblogs.com/ncepu/p/13695101.html
Copyright © 2020-2023  润新知