回到顶部

Contents

centos7 安装 mysql5.7 日志

[root@VM_2_29_centos download]# wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
--2020-04-08 18:55:52--  https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11
Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm [following]
--2020-04-08 18:55:58--  https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
Resolving repo.mysql.com (repo.mysql.com)... 23.220.193.25
Connecting to repo.mysql.com (repo.mysql.com)|23.220.193.25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25680 (25K) [application/x-redhat-package-manager]
Saving to: ‘mysql57-community-release-el7-11.noarch.rpm’

100%[====================================================================================>] 25,680      --.-K/s   in 0.1s    

2020-04-08 18:55:59 (222 KB/s) - ‘mysql57-community-release-el7-11.noarch.rpm’ saved [25680/25680]

[root@VM_2_29_centos download]# yum localinstall mysql57-community-release-el7-11.noarch.rpm
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Examining mysql57-community-release-el7-11.noarch.rpm: mysql57-community-release-el7-11.noarch
Marking mysql57-community-release-el7-11.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el7-11 will be installed
--> Finished Dependency Resolution
epel/7/x86_64                                                                                          | 4.7 kB  00:00:00     
epel/7/x86_64/group_gz                                                                                 |  95 kB  00:00:00     
epel/7/x86_64/updateinfo                                                                               | 1.0 MB  00:00:00     
epel/7/x86_64/primary_db                                                                               | 6.8 MB  00:00:00     
extras/7/x86_64                                                                                        | 2.9 kB  00:00:00     
extras/7/x86_64/primary_db                                                                             | 165 kB  00:00:00     
os/7/x86_64                                                                                            | 3.6 kB  00:00:00     
os/7/x86_64/group_gz                                                                                   | 165 kB  00:00:00     
os/7/x86_64/primary_db                                                                                 | 6.0 MB  00:00:00     
updates/7/x86_64                                                                                       | 2.9 kB  00:00:00     
updates/7/x86_64/primary_db                                                                            | 7.6 MB  00:00:00     

Dependencies Resolved

==============================================================================================================================
 Package                            Arch            Version           Repository                                         Size
==============================================================================================================================
Installing:
 mysql57-community-release          noarch          el7-11            /mysql57-community-release-el7-11.noarch           31 k

Transaction Summary
==============================================================================================================================
Install  1 Package

Total size: 31 k
Installed size: 31 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mysql57-community-release-el7-11.noarch                                                                    1/1 
  Verifying  : mysql57-community-release-el7-11.noarch                                                                    1/1 

Installed:
  mysql57-community-release.noarch 0:el7-11                                                                                   

Complete!
[root@VM_2_29_centos download]# yum install mysql-community-server
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
mysql-connectors-community                                                                             | 2.5 kB  00:00:00     
mysql-tools-community                                                                                  | 2.5 kB  00:00:00     
mysql57-community                                                                                      | 2.5 kB  00:00:00     
(1/3): mysql-connectors-community/x86_64/primary_db                                                    |  53 kB  00:00:00     
(2/3): mysql-tools-community/x86_64/primary_db                                                         |  69 kB  00:00:00     
(3/3): mysql57-community/x86_64/primary_db                                                             | 198 kB  00:00:00     
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.29-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.29-1.el7 for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: libnuma.so.1(libnuma_1.2)(64bit) for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: libnuma.so.1(libnuma_1.1)(64bit) for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Processing Dependency: libnuma.so.1()(64bit) for package: mysql-community-server-5.7.29-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.29-1.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.29-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.7.29-1.el7 will be installed
---> Package numactl-libs.x86_64 0:2.0.12-3.el7_7.1 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.52-1.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-libs.x86_64 0:5.7.29-1.el7 will be obsoleting
--> Running transaction check
---> Package mysql-community-libs-compat.x86_64 0:5.7.29-1.el7 will be obsoleting
---> Package postfix.x86_64 2:2.10.1-6.el7 will be updated
---> Package postfix.x86_64 2:2.10.1-7.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
 Package                                 Arch               Version                       Repository                     Size
==============================================================================================================================
Installing:
 mysql-community-libs                    x86_64             5.7.29-1.el7                  mysql57-community             2.5 M
     replacing  mariadb-libs.x86_64 1:5.5.52-1.el7
 mysql-community-libs-compat             x86_64             5.7.29-1.el7                  mysql57-community             1.3 M
     replacing  mariadb-libs.x86_64 1:5.5.52-1.el7
 mysql-community-server                  x86_64             5.7.29-1.el7                  mysql57-community             175 M
Installing for dependencies:
 mysql-community-client                  x86_64             5.7.29-1.el7                  mysql57-community              26 M
 mysql-community-common                  x86_64             5.7.29-1.el7                  mysql57-community             311 k
 numactl-libs                            x86_64             2.0.12-3.el7_7.1              updates                        30 k
Updating for dependencies:
 postfix                                 x86_64             2:2.10.1-7.el7                os                            2.4 M

Transaction Summary
==============================================================================================================================
Install  3 Packages (+3 Dependent packages)
Upgrade             ( 1 Dependent package)

Total download size: 208 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.29-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-common-5.7.29-1.el7.x86_64.rpm is not installed
(1/7): mysql-community-common-5.7.29-1.el7.x86_64.rpm                                                  | 311 kB  00:00:01     
(2/7): mysql-community-libs-5.7.29-1.el7.x86_64.rpm                                                    | 2.5 MB  00:00:00     
(3/7): mysql-community-libs-compat-5.7.29-1.el7.x86_64.rpm                                             | 1.3 MB  00:00:04     
(4/7): numactl-libs-2.0.12-3.el7_7.1.x86_64.rpm                                                        |  30 kB  00:00:00     
(5/7): postfix-2.10.1-7.el7.x86_64.rpm                                                                 | 2.4 MB  00:00:00     
(6/7): mysql-community-client-5.7.29-1.el7.x86_64.rpm                                                  |  26 MB  00:00:10     
(7/7): mysql-community-server-5.7.29-1.el7.x86_64.rpm                                                  | 175 MB  00:23:52     
------------------------------------------------------------------------------------------------------------------------------
Total                                                                                         148 kB/s | 208 MB  00:23:58     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
 Userid     : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
 Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
 Package    : mysql57-community-release-el7-11.noarch (@/mysql57-community-release-el7-11.noarch)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mysql-community-common-5.7.29-1.el7.x86_64                                                                 1/9 
  Installing : mysql-community-libs-5.7.29-1.el7.x86_64                                                                   2/9 
  Installing : mysql-community-client-5.7.29-1.el7.x86_64                                                                 3/9 
  Installing : mysql-community-libs-compat-5.7.29-1.el7.x86_64                                                            4/9 
  Installing : numactl-libs-2.0.12-3.el7_7.1.x86_64                                                                       5/9 
  Installing : mysql-community-server-5.7.29-1.el7.x86_64                                                                 6/9 
  Updating   : 2:postfix-2.10.1-7.el7.x86_64                                                                              7/9 
  Cleanup    : 2:postfix-2.10.1-6.el7.x86_64                                                                              8/9 
  Erasing    : 1:mariadb-libs-5.5.52-1.el7.x86_64                                                                         9/9 
  Verifying  : mysql-community-common-5.7.29-1.el7.x86_64                                                                 1/9 
  Verifying  : mysql-community-libs-5.7.29-1.el7.x86_64                                                                   2/9 
  Verifying  : 2:postfix-2.10.1-7.el7.x86_64                                                                              3/9 
  Verifying  : numactl-libs-2.0.12-3.el7_7.1.x86_64                                                                       4/9 
  Verifying  : mysql-community-server-5.7.29-1.el7.x86_64                                                                 5/9 
  Verifying  : mysql-community-client-5.7.29-1.el7.x86_64                                                                 6/9 
  Verifying  : mysql-community-libs-compat-5.7.29-1.el7.x86_64                                                            7/9 
  Verifying  : 1:mariadb-libs-5.5.52-1.el7.x86_64                                                                         8/9 
  Verifying  : 2:postfix-2.10.1-6.el7.x86_64                                                                              9/9 

Installed:
  mysql-community-libs.x86_64 0:5.7.29-1.el7                  mysql-community-libs-compat.x86_64 0:5.7.29-1.el7               
  mysql-community-server.x86_64 0:5.7.29-1.el7               

Dependency Installed:
  mysql-community-client.x86_64 0:5.7.29-1.el7                  mysql-community-common.x86_64 0:5.7.29-1.el7                 
  numactl-libs.x86_64 0:2.0.12-3.el7_7.1                       

Dependency Updated:
  postfix.x86_64 2:2.10.1-7.el7                                                                                               

Replaced:
  mariadb-libs.x86_64 1:5.5.52-1.el7                                                                                          

Complete!
[root@VM_2_29_centos download]# service mysqld restart
Redirecting to /bin/systemctl restart  mysqld.service
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

 


^_^
请喝咖啡 ×

文章部分资料可能来源于网络,如有侵权请告知删除。谢谢!

前一篇: django 多字段可选查询
下一篇: how to django admin changlist add myself data
captcha