2016-06-10 109 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個鏈接。