gpt4 book ai didi

centos - 安装 MariaDB 的问题

转载 作者:行者123 更新时间:2023-12-04 19:32:10 24 4
gpt4 key购买 nike

我有一个包含 166791718 行的数据集,我想使用 SQL 来管理数据。为了使用该语言,我需要将它安装在我的机器上。

但是,我在 Cent OS 7 机器上安装 MariaDB 时遇到问题。我跑

$ sudo yum install mariadb-server

这是我得到的输出:
Loaded plugins: fastestmirror, langpacks, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
* epel: mirror.globo.com
Resolving Dependencies
--> Running transaction check
---> Package mariadb-server.x86_64 1:5.5.47-1.el7_2 will be installed
--> Processing Dependency: mariadb(x86-64) = 1:5.5.47-1.el7_2 for package: 1:mariadb-server-5.5.47-1.el7_2.x86_64
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.47-1.el7_2 for package: 1:mariadb-server-5.5.47-1.el7_2.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.47-1.el7_2.x86_64
--> Processing Dependency: perl-DBI for package: 1:mariadb-server-5.5.47-1.el7_2.x86_64
--> Processing Dependency: perl(DBI) for package: 1:mariadb-server-5.5.47-1.el7_2.x86_64
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.47-1.el7_2 will be installed
---> Package mariadb-libs.x86_64 1:5.5.47-1.el7_2 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.023-5.el7 will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
--> Running transaction check
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Running transaction check
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
Removing mariadb-libs.x86_64 1:5.5.47-1.el7_2 - u due to obsoletes from installed mysql-community-libs-5.6.23-3.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.47-1.el7_2 will be installed
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.47-1.el7_2 for package: 1:mariadb-5.5.47-1.el7_2.x86_64
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.47-1.el7_2 for package: 1:mariadb-server-5.5.47-1.el7_2.x86_64
--> Finished Dependency Resolution
Error: Package: 1:mariadb-5.5.47-1.el7_2.x86_64 (centos-7)
Requires: mariadb-libs(x86-64) = 1:5.5.47-1.el7_2
Available: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (centos-7)
mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos
Available: 1:mariadb-libs-5.5.47-1.el7_2.i686 (centos-7)
~mariadb-libs(x86-32) = 1:5.5.47-1.el7_2
Error: Package: 1:mariadb-server-5.5.47-1.el7_2.x86_64 (centos-7)
Requires: mariadb-libs(x86-64) = 1:5.5.47-1.el7_2
Available: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (centos-7)
mariadb-libs(x86-64) = 1:5.5.44-2.el7.centos
Available: 1:mariadb-libs-5.5.47-1.el7_2.i686 (centos-7)
~mariadb-libs(x86-32) = 1:5.5.47-1.el7_2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我已经尝试运行
sudo yum install mariadb-server --skip-broken


rpm -Va --nofiles --nodigest

没有运气。有什么建议么?

最佳答案

我有同样的问题,也接近这些主题:

_http://serverfault.com/questions/738242/reinstalling-mysql-on-centos-giving-conflicts _http://unix.stackexchange.com/questions/82076/error-while-installing-perl-dbd-mysql



我的系统是虚拟机中的 CentOS 7 64bits。
以下是我解决问题的步骤:

1) 设置 MariaDB.repo

source: _https://www.howtoforge.com/tutorial/install-mariadb-10-on-centos-6/


$ nano /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

(保存:ctrl+y,然后是 y,然后是回车)

2) 为 mysql 使用正确的 GPG key
update content of /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql with _http://repo.mysql.com/RPM-GPG-KEY-mysql
$ vi /etc/yum.repos.d/CentOS-MySql.repo
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

3) 激活 mariadb.service

source: _https://www.vultr.com/docs/install-mariadb-on-centos-7


$ systemctl start mariadb.service
$ systemctl enable mariadb.service
$ systemctl is-active mariadb.service

4) 从 yum 中排除 mariadb

source: _https://discuss.erpnext.com/t/mariadb-error-while-yum-update-with-centos-7/4439


$ vi /etc/yum.conf file
exclude=mariadb*

5) 由于 mariadb 和 mysql 之间的冲突,停用 mariadb.service

source: _https://www.centos.org/forums/viewtopic.php?t=52860


$ systemctl stop mariadb.service
$ systemctl disable mariadb.service

6)升级你的系统
$ yum upgrade

我希望您能在这些步骤中找到一些提示。对不起“_http”,但由于这是我在这里的第一篇文章,我不能添加超过 2 个链接。

关于centos - 安装 MariaDB 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37756308/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com