> CentOS > CentOS教程 >

Centos 7里面没有mysql数据库被MariaDB代替了

Centos 7里面没有mysql数据库被MariaDB代替了。

# yum install mysql mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package mysql-server available.
Resolving Dependencies
–> Running transaction check
—> Package mariadb.x86_64 1:5.5.37-1.el7_0 will be installed
–> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.37-1.el7_0 for package: 1:mariadb-5.5.37-1.el7_0.x86_64
–> Running transaction check
—> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be updated
—> Package mariadb-libs.x86_64 1:5.5.37-1.el7_0 will be an update
–> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================
Installing:
mariadb x86_64 1:5.5.37-1.el7_0 updates 8.9 M
Updating for dependencies:
mariadb-libs x86_64 1:5.5.37-1.el7_0 updates 752 k

Transaction Summary
===================================================================================================================================
Install 1 Package
Upgrade ( 1 Dependent package)

Total download size: 9.7 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs reduced 752 k of updates to 93 k (87% saved)
(1/2): mariadb-libs-5.5.35-3.el7_5.5.37-1.el7_0.x86_64.drpm | 93 kB 00:00:00
warning: /var/cache/yum/x86_64/7/updates/packages/mariadb-5.5.37-1.el7_0.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for mariadb-5.5.37-1.el7_0.x86_64.rpm is not installed
(2/2): mariadb-5.5.37-1.el7_0.x86_64.rpm | 8.9 MB 00:00:19
———————————————————————————————————————————–
Total 466 kB/s | 9.0 MB 00:00:19
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : “CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>”
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-0.1406.el7.centos.2.3.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:mariadb-libs-5.5.37-1.el7_0.x86_64 1/3
Installing : 1:mariadb-5.5.37-1.el7_0.x86_64 2/3
Cleanup : 1:mariadb-libs-5.5.35-3.el7.x86_64 3/3
Verifying : 1:mariadb-5.5.37-1.el7_0.x86_64 1/3
Verifying : 1:mariadb-libs-5.5.37-1.el7_0.x86_64 2/3
Verifying : 1:mariadb-libs-5.5.35-3.el7.x86_64 3/3

Installed:
mariadb.x86_64 1:5.5.37-1.el7_0

Dependency Updated:
mariadb-libs.x86_64 1:5.5.37-1.el7_0
 

(责任编辑:IT)