mysql基础解析
//配置mysql的yum源 # cd /usr/src# ls
debugkernels
# wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
# ls
debugkernelsmysql57-community-release-el7-10.noarch.rpm
# yum -y install mysql57-community-release-el7-10.noarch.rpm
//安装mysql5.7
# yum -y install mysql-community-server mysql-community-c lient mysql-community-common mysql-community-devel
Loaded plugins: fastestmirror
mysql-connectors-community | 2.5 kB00:00:00
mysql-tools-community | 2.5 kB00:00:00
mysql57-community | 2.5 kB00:00:00
(1/3): mysql-connectors-community/x86_64/primary_db |25 kB00:00:01
(2/3): mysql-tools-community/x86_64/primary_db |45 kB00:00:02
(3/3): mysql57-community/x86_64/primary_db | 152 kB00:00:02
Loading mirror speeds from cached hostfile
No package mysql-community-c available.
No package lient available.
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.7.23-1.el7 will be installed
---> Package mysql-community-devel.x86_64 0:5.7.23-1.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-devel-5.7.23-1.el7.x86_64
--> Processing Dependency: libmysqlclient.so.20()(64bit) for package: mysql-community-devel-5.7.23-1.el7.x86_64
---> Package mysql-community-server.x86_64 0:5.7.23-1.el7 will be installed
--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.23-1.el7.x86_64
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be obsoleted
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
---> Package mysql-community-client.x86_64 0:5.7.23-1.el7 will be installed
---> Package mysql-community-libs.x86_64 0:5.7.23-1.el7 will be obsoleting
--> Running transaction check
---> Package mysql-community-libs-compat.x86_64 0:5.7.23-1.el7 will be obsoleting
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================
Package Arch Version Repository > ==========================================================================================================================
Installing:
mysql-community-common x86_64 5.7.23-1.el7 mysql57-community 274 k
mysql-community-devel x86_64 5.7.23-1.el7 mysql57-community 3.6 M
mysql-community-libs x86_64 5.7.23-1.el7 mysql57-community 2.2 M
replacingmariadb-libs.x86_64 1:5.5.56-2.el7
mysql-community-libs-compat x86_64 5.7.23-1.el7 mysql57-community 2.0 M
replacingmariadb-libs.x86_64 1:5.5.56-2.el7
mysql-community-server x86_64 5.7.23-1.el7 mysql57-community 165 M
Installing for dependencies:
mysql-community-client x86_64 5.7.23-1.el7 mysql57-community 24 M
Transaction Summary
==========================================================================================================================
Install5 Packages (+1 Dependent package)
Total download> Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.23-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key> Public key for mysql-community-common-5.7.23-1.el7.x86_64.rpm is not installed
(1/6): mysql-community-common-5.7.23-1.el7.x86_64.rpm | 274 kB00:00:00
(2/6): mysql-community-devel-5.7.23-1.el7.x86_64.rpm | 3.6 MB00:00:01
(3/6): mysql-community-libs-5.7.23-1.el7.x86_64.rpm | 2.2 MB00:00:01
(4/6): mysql-community-libs-compat-5.7.23-1.el7.x86_64.rpm | 2.0 MB00:00:01
(5/6): mysql-community-client-5.7.23-1.el7.x86_64.rpm |24 MB00:00:05
(6/6): mysql-community-server-5.7.23-1.el7.x86_64.rpm | 165 MB00:00:21
--------------------------------------------------------------------------------------------------------------------------
Total 7.3 MB/s | 197 MB00:00:27
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
Userid : "MySQL> Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
Package : mysql57-community-release-el7-10.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mysql-community-common-5.7.23-1.el7.x86_64 1/7
Installing : mysql-community-libs-5.7.23-1.el7.x86_64 2/7
Installing : mysql-community-client-5.7.23-1.el7.x86_64 3/7
Installing : mysql-community-server-5.7.23-1.el7.x86_64 4/7
Installing : mysql-community-libs-compat-5.7.23-1.el7.x86_64 5/7
Installing : mysql-community-devel-5.7.23-1.el7.x86_64 6/7
Erasing : 1:mariadb-libs-5.5.56-2.el7.x86_64 7/7
Verifying: mysql-community-server-5.7.23-1.el7.x86_64 1/7
Verifying: mysql-community-libs-5.7.23-1.el7.x86_64 2/7
Verifying: mysql-community-client-5.7.23-1.el7.x86_64 3/7
Verifying: mysql-community-libs-compat-5.7.23-1.el7.x86_64 4/7
Verifying: mysql-community-common-5.7.23-1.el7.x86_64 5/7
Verifying: mysql-community-devel-5.7.23-1.el7.x86_64 6/7
Verifying: 1:mariadb-libs-5.5.56-2.el7.x86_64 7/7
Installed:
mysql-community-common.x86_64 0:5.7.23-1.el7 mysql-community-devel.x86_64 0:5.7.23-1.el7
mysql-community-libs.x86_64 0:5.7.23-1.el7 mysql-community-libs-compat.x86_64 0:5.7.23-1.el7
mysql-community-server.x86_64 0:5.7.23-1.el7
Dependency Installed:
mysql-community-client.x86_64 0:5.7.23-1.el7
Replaced:
mariadb-libs.x86_64 1:5.5.56-2.el7
Complete!
页:
[1]