2016-06-10 18 views
0

Ich habe einen Datensatz mit 166791718 Zeilen und ich möchte SQL verwenden, um die Daten zu verwalten. Um die Sprache zu verwenden, muss ich sie in meinem Computer installieren.Probleme bei der Installation von MariaDB

Ich habe jedoch Probleme bei der Installation von MariaDB in einem Cent OS 7-Rechner. Ich betreibe

$ sudo yum install mariadb-server 

und dies ist die Ausgabe erhalte ich:

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 

Ich habe bereits versucht

sudo yum install mariadb-server --skip-broken 

und

rpm -Va --nofiles --nodigest 

ohne Glück zu laufen. Irgendwelche Vorschläge?

Antwort

0

hatte ich die gleiche Art von Fragen, in der Nähe zu diesen Themen auch:

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

Mein System ist ein CentOS 7 64bits in einer virtuellen Maschine. Hier sind die Schritte I gefolgt, die das Problem gelöst:

1)

Quelle die MariaDB.repo einzurichten: _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 

(sparen: Strg + y, dann y, dann Carriage Return-)

2) verwenden, um die korrekten Schlüssel für 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) aktivieren mariadb.service

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

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

4) MariaDB aus yum

Quelle ausschließen //discuss.erpnext.com/t/mariadb-error-while-yum -update-with-centos-7/4439

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

5) deaktivieren mariadb.service aufgrund von Konflikten zwischen MariaDB und mysql

Quelle: _https: //www.centos.org/ Foren/Viewtopic.php?t = 52860

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

6) Aktualisieren Sie Ihr System

$ yum upgrade 

Ich hoffe, dass Sie einige Hinweise in diesen Schritten finden. Sorry für die "_http", aber da es mein erster Beitrag hier ist, kann ich nicht mehr als 2 Links hinzufügen.