programing

Maria 설치 문제DB

oldcodes 2023. 9. 16. 09:51
반응형

Maria 설치 문제DB

166791718 라인이 포함된 데이터셋이 있는데 SQL을 사용하여 데이터를 관리하고 싶습니다.언어를 사용하려면 기계에 설치해야 합니다.

하지만 센트 OS 7 머신에 마리아DB를 설치하는 데 문제가 있습니다.나는 달립니다

$ 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

제 시스템은 센트입니다.가상 시스템에 OS 7 64비트가 있습니다.문제를 해결하기 위해 수행한 단계는 다음과 같습니다.

1) MariaDB.repo 설정

출처 : _http://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, Carriage-Return)

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) mariadb를 활성화합니다.서비스

출처 : _http://www.vultr.com/docs/install-mariadb-on-centos-7

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

4) 냠냠에서 마리아드를 빼다

출처 : _http://discuss.erpnext.com/t/mariadb-error-while-yum-update-with-centos-7/4439

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

5) mariadb를 비활성화합니다.mariadb와 mysql간의 충돌로 인한 서비스

출처 : _http://www.centos.org/forums/viewtopic.php?t=52860

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

6) 시스템 업그레이드

$ yum upgrade

그 단계에서 힌트를 찾기를 바랍니다.'_http' 죄송합니다만, 여기는 제가 처음 올린 글이라 링크를 2개 이상 추가할 수 없습니다.

센트를 추천합니다.OS 플러그인 protectbase 이 플러그인은 여러 타사 저장소를 처리할 때 도움이 됩니다.EPEL/RPMForge

"를 사용할 수 있습니다.yum --disablerepo=[reponame]" 시스템을 지속적으로 보호하고 싶다면 단일 사용 옵션으로 "보호 기반"을 적극 권장합니다.

"yum install yum-plugins-protectbase"

그러면 추가"protect=1" 당신이 보호하고 싶은 저장소에 말입니다.일명 CentOS-Base 그리고 epel.repo에 "protect=0"을 추가하면 타사 저장소를 처리할 때 가장 일반적인 충돌을 해결할 수 있습니다.

블로그에 좀 더 상세한 가이드를 만들었습니다. CentOS 4/5/6/7의 여러 저장소를 다룹니다.

언급URL : https://stackoverflow.com/questions/37756308/problems-installing-mariadb

반응형