2016-06-10 103 views
0

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

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

$ sudo yum install mariadb-server 

,这是输出I得到:

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 

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

回答

0

我有同样类型的问题,接近这些议题,以及:

_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 64位的虚拟机。 下面是我遵循的步骤,其解决了这个问题:

1)成立MariaDB.repo

源:_HTTPS://www.howtoforge.com/tutorial/install-mariadb-10-上的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)使用正确的GPG密钥为MySQL

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

源:_HTTPS://www.vultr.com/docs/install-mariadb-on-centos-7

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

4)排除从MariaDB的荫

源:_HTTPS://discuss.erpnext.com/t/mariadb-error-while-yum -Update与 - 的centos-4439分之7

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

5)停用mariadb.service由于MariaDB的和MySQL

源之间的冲突:_HTTPS://www.centos.org/论坛/ viewtopic.php?T = 52860

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

6)升级你的系统

$ yum upgrade 

我希望你会发现这些步骤中的一些提示。对不起,“_http”,但因为这是我的第一篇文章,我不能添加超过2个链接。