mysql yum安装出错,搞了一天了,头疼!

[复制链接]
查看11 | 回复5 | 2021-1-27 05:59:54 | 显示全部楼层 |阅读模式
[root@vm10-136-50-8home]#sudoyuminstallmysql-community-server
Loadedplugins:fastestmirror
SettingupInstallProcess
Repositorybaseislistedmorethanonceintheconfiguration
Repositoryextrasislistedmorethanonceintheconfiguration
Repositorycentosplusislistedmorethanonceintheconfiguration
Repositorycontribislistedmorethanonceintheconfiguration
Loadingmirrorspeedsfromcachedhostfile
*base:mirror.bit.edu.cn
*extras:mirror.bit.edu.cn
*updates:mirror.bit.edu.cn
ResolvingDependencies
-->Runningtransactioncheck
--->Packagemysql-community-server.x86_640:5.6.27-2.el7willbeinstalled
-->ProcessingDependency:mysql-community-common(x86-64)=5.6.27-2.el7forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:mysql-community-client(x86-64)=5.6.27-2.el7forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:systemdforpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:systemdforpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libstdc++.so.6(GLIBCXX_3.4.15)(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libnuma.so.1(libnuma_1.2)(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libnuma.so.1(libnuma_1.1)(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libaio.so.1(LIBAIO_0.4)(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libaio.so.1(LIBAIO_0.1)(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libnuma.so.1()(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libaio.so.1()(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->Runningtransactioncheck
--->Packagelibaio.x86_640:0.3.107-10.el6willbeinstalled
--->Packagemysql-community-client.x86_640:5.6.27-2.el7willbeinstalled
-->ProcessingDependency:mysql-community-libs(x86-64)=5.6.27-2.el7forpackage:mysql-community-client-5.6.27-2.el7.x86_64
--->Packagemysql-community-common.x86_640:5.6.27-2.el7willbeinstalled
--->Packagemysql-community-server.x86_640:5.6.27-2.el7willbeinstalled
-->ProcessingDependency:systemdforpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:systemdforpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libstdc++.so.6(GLIBCXX_3.4.15)(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
--->Packagenumactl.x86_640:2.0.9-2.el6willbeinstalled
-->Runningtransactioncheck
--->Packagemysql-community-libs.x86_640:5.6.27-2.el7willbeinstalled
--->Packagemysql-community-server.x86_640:5.6.27-2.el7willbeinstalled
-->ProcessingDependency:systemdforpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:systemdforpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->ProcessingDependency:libstdc++.so.6(GLIBCXX_3.4.15)(64bit)forpackage:mysql-community-server-5.6.27-2.el7.x86_64
-->FinishedDependencyResolution
Error:Package:mysql-community-server-5.6.27-2.el7.x86_64(mysql56-community)
Requires:systemd
Error:Package:mysql-community-server-5.6.27-2.el7.x86_64(mysql56-community)
Requires:libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Youcouldtryusing--skip-brokentoworkaroundtheproblem
Youcouldtryrunning:rpm-Va--nofiles--nodigest

尝试了使用
[root@vm10-136-50-8home]#yuminstalllibstdc*
Loadedplugins:fastestmirror
SettingupInstallProcess
Repositorybaseislistedmorethanonceintheconfiguration
Repositoryextrasislistedmorethanonceintheconfiguration
Repositorycentosplusislistedmorethanonceintheconfiguration
Repositorycontribislistedmorethanonceintheconfiguration
Loadingmirrorspeedsfromcachedhostfile
*base:mirror.bit.edu.cn
*extras:mirror.bit.edu.cn
*updates:mirror.bit.edu.cn
Packagelibstdc++-4.4.7-16.el6.x86_64alreadyinstalledandlatestversion
Nopackagelibstdc++6_4.7.2-5_amd64.debavailable.
Nopackagelibstdc++6_4.7.2-5_i386.debavailable.
Nopackagelibstdc++.so.6.0.17.tar.gzavailable.
Nothingtodo
还是不行下了libstdc++.so.6.0.17软连接转过来也是不行真是醉了系统红帽6.7
分 -->
回复

使用道具 举报

千问 | 2021-1-27 05:59:54 | 显示全部楼层
你安装的这个是旧版本的了,尽量还是弄新一些的
https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html
参考一下官方文档吧。这是其一。
其二,首先确保你的系统安装了常用的yum源,比如epel和elrepo等,否则一些软件找不到。
回复

使用道具 举报

千问 | 2021-1-27 05:59:54 | 显示全部楼层
是不是应该是GCC版本过低。。。
去官网下个来安吧https://dev.mysql.com/downloads/mysql/
回复

使用道具 举报

千问 | 2021-1-27 05:59:54 | 显示全部楼层
源码安装
[root@localhost/]#yum-yinstallgccgcc-c++ncursesncurses-develcmakebisoncmake
[root@localhost/]#cd/usr/local/
[root@localhostlocal]#groupadd-rmysql&&useradd-r-gmysql-s/sbin/nologin-mmysql
[root@localhostlocal]#mkdir-p/data/mysql
[root@localhostlocal]#wgethttps://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-boost-5.7.20.tar.gz
[root@localhostlocal]#tar-axvfmysql-boost-5.7.20.tar.gz
[root@localhostlocal]#cdmysql-5.7.20/
[[email protected]]#cmake.\
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\
-DMYSQL_DATADIR=/data/mysql\
-DWITH_BOOST=./boost\
-DSYSCONFDIR=/etc\
-DWITH_INNOBASE_STORAGE_ENGINE=1\
-DWITH_PARTITION_STORAGE_ENGINE=1\
-DWITH_FEDERATED_STORAGE_ENGINE=1\
-DWITH_BLACKHOLE_STORAGE_ENGINE=1\
-DWITH_MYISAM_STORAGE_ENGINE=1\
-DENABLED_LOCAL_INFILE=1\
-DENABLE_DTRACE=0\
-DDEFAULT_CHARSET=utf8mb4\
-DDEFAULT_COLLATION=utf8mb4_general_ci\
-DWITH_EMBEDDED_SERVER=1
[[email protected]]#make-j`grepprocessor/proc/cpuinfo|wc-l`
[[email protected]]#makeinstall
[[email protected]]#cp/usr/local/mysql/support-files/mysql.server/etc/init.d/mysqld
[[email protected]]#chmod+x/etc/init.d/mysqld
[[email protected]]#systemctlenablemysqld
[[email protected]]#cat>/etc/my.cnf>/etc/profile&&source/etc/profile
[[email protected]]#mysqld--initialize-insecure--user=mysql--basedir=/usr/local/mysql--datadir=/data/mysql
[[email protected]]#systemctlstartmysqld
[[email protected]]#mysql_secure_installation
[[email protected]]#ldconfig|grepmysql
[[email protected]]#echo"/usr/local/mysql/lib">/etc/ld.so.conf.d/mysql.conf
[[email protected]]#ldconfig
[[email protected]]#ldconfig-v|grepmysql
[[email protected]]#firewall-cmd--permanent--add-port=3306/tcp
[[email protected]]#firewall-cmd--reload

回复

使用道具 举报

千问 | 2021-1-27 05:59:54 | 显示全部楼层
我也是这个问题,后来发现是因为我的系统为centos6,但是下的却是el7的版本,问题找到了但是没法解决,因为我重新下载了el6的,但是每次执行sudoyuminstallmysql-community-server命令,他还是会去下载el7,搞了一天也找不到解决办法

回复

使用道具 举报

千问 | 2021-1-27 05:59:54 | 显示全部楼层
为什么要这么安装呢?直接去官网下载二进制安装包不就行了吗,几分钟搞定
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行