Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Centos 安装MariaDB时遇到的问题_Centos_Mariadb - Fatal编程技术网

Centos 安装MariaDB时遇到的问题

Centos 安装MariaDB时遇到的问题,centos,mariadb,Centos,Mariadb,我有一个包含166791718行的数据集,我想使用SQL来管理数据。为了使用这种语言,我需要在我的机器上安装它 然而,我在CentOS7机器上安装MariaDB时遇到问题。我跑 $ sudo yum install mariadb-server 这是我得到的输出: Loaded plugins: fastestmirror, langpacks, rhnplugin This system is receiving updates from RHN Classic or Red Hat Sat

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

然而,我在CentOS7机器上安装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


没有运气。有什么建议吗

我也遇到过类似的问题,与这些话题也很接近:

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

我的系统是一台CentOS 64位虚拟机。 以下是解决问题的步骤:

1) 建立MariaDB.repo

资料来源:_https://www.howtoforge.com/tutorial/install-mariadb-10-on-centos-6/

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

2) 为mysql使用正确的GPG密钥

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) 激活mariab.service

资料来源:_https://www.vultr.com/docs/install-mariadb-on-centos-7

4) 从yum中排除mariadb

资料来源:_https://discuss.erpnext.com/t/mariadb-error-while-yum-update-with-centos-7/4439

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

资料来源:_https://www.centos.org/forums/viewtopic.php?t=52860

6) 升级您的系统

$ yum upgrade

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

我也遇到了类似的问题,与这些主题也很接近:

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

我的系统是一台CentOS 64位虚拟机。 以下是解决问题的步骤:

1) 建立MariaDB.repo

资料来源:_https://www.howtoforge.com/tutorial/install-mariadb-10-on-centos-6/

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

2) 为mysql使用正确的GPG密钥

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) 激活mariab.service

资料来源:_https://www.vultr.com/docs/install-mariadb-on-centos-7

4) 从yum中排除mariadb

资料来源:_https://discuss.erpnext.com/t/mariadb-error-while-yum-update-with-centos-7/4439

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

资料来源:_https://www.centos.org/forums/viewtopic.php?t=52860

6) 升级您的系统

$ yum upgrade

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

我建议使用CentOS插件protectbase此插件将有助于处理多个第三方回购或仅
EPEL/RPMForge

您可以使用“
yum--disablerepo=[reponame]
”,但这是一个一次性使用选项,如果您希望持续保护您的系统,那么我强烈推荐使用“protectbase”

然后在您想要保护的回购协议上添加“
protect=1
”。阿卡森托斯基地 并将“protect=0”添加到epel.repo。这应该可以解决处理第三方存储库时最常见的冲突


我在这里的博客上创建了一个更深入的指南

我建议使用CentOS插件protectbase该插件在处理多个第三方回购协议或只是
EPEL/RPMForge

您可以使用“
yum--disablerepo=[reponame]
”,但这是一个一次性使用选项,如果您希望持续保护您的系统,那么我强烈推荐使用“protectbase”

然后在您想要保护的回购协议上添加“
protect=1
”。阿卡森托斯基地 并将“protect=0”添加到epel.repo。这应该可以解决处理第三方存储库时最常见的冲突

我在这里的博客上创建了一个更深入的指南

$ vi /etc/yum.conf file
exclude=mariadb*
$ systemctl stop mariadb.service
$ systemctl disable mariadb.service
$ yum upgrade
"yum install yum-plugins-protectbase"