MySQL:飞腾2000+Centos7.6 aarch64 部署MySQL8.0.36

news2024/11/26 23:47:31

目录

1.硬件环境

2.MySQL选择 Bundle版本【全部文件】​编辑

3.下载并安装

4.安装完成后检查mysql 

5.初始化MySQL

6.那就问了,都初始化了啥?

7.尝试启动MySQL

8.给mysql文件授权

 9.再次尝试启动正常

10.mysql初始化目录出现了mysql.sock

11.找到MySQL初始化时的密码

12.测试PC客户端连接工具

13. 关闭SSL连接成功

 14.另外如果用的时navicat版本较低连接会报错

 15.请选用版本较高的navicat连接工具

16.新版本的navicat获取方式


1.硬件环境

cpu信息

OS信息 

MySQL选择

地址: MySQL :: Download MySQL Community Server

2.MySQL选择 Bundle版本【全部文件】

3.下载并安装

[root@localhost ~]# wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.36-1.el7.aarch64.rpm-bundle.tar
total 1092968
[root@localhost ~]# tar -xvf mysql-8.0.36-1.el7.aarch64.rpm-bundle.tar -C mysql-rpm
-rw-r--r-- 1 7155 31415  16142028 Dec 14 14:42 mysql-community-client-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415   3552480 Dec 14 14:42 mysql-community-client-plugins-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415    681252 Dec 14 14:42 mysql-community-common-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415 622144264 Dec 14 14:43 mysql-community-debuginfo-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415   1906476 Dec 14 14:44 mysql-community-devel-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415   3948036 Dec 14 14:44 mysql-community-embedded-compat-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415   2344460 Dec 14 14:44 mysql-community-icu-data-files-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415   1505692 Dec 14 14:44 mysql-community-libs-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415    666500 Dec 14 14:44 mysql-community-libs-compat-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 root root       6140 Nov 12  2015 mysql-community-release-el7-5.noarch.rpm
-rw-r--r-- 1 7155 31415  65412028 Dec 14 14:44 mysql-community-server-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415  24484504 Dec 14 14:45 mysql-community-server-debug-8.0.36-1.el7.aarch64.rpm
-rw-r--r-- 1 7155 31415 376376388 Dec 14 14:46 mysql-community-test-8.0.36-1.el7.aarch64.rpm
[root@localhost mysql-rpm]# yum install -y ./*
Loaded plugins: fastestmirror
Examining ./mysql-community-client-8.0.36-1.el7.aarch64.rpm: mysql-community-client-8.0.36-1.el7.aarch64
./mysql-community-client-8.0.36-1.el7.aarch64.rpm: does not update installed package.
Examining ./mysql-community-client-plugins-8.0.36-1.el7.aarch64.rpm: mysql-community-client-plugins-8.0.36-1.el7.aarch64
./mysql-community-client-plugins-8.0.36-1.el7.aarch64.rpm: does not update installed package.
Examining ./mysql-community-common-8.0.36-1.el7.aarch64.rpm: mysql-community-common-8.0.36-1.el7.aarch64
./mysql-community-common-8.0.36-1.el7.aarch64.rpm: does not update installed package.
Examining ./mysql-community-debuginfo-8.0.36-1.el7.aarch64.rpm: mysql-community-debuginfo-8.0.36-1.el7.aarch64
Marking ./mysql-community-debuginfo-8.0.36-1.el7.aarch64.rpm to be installed
Examining ./mysql-community-devel-8.0.36-1.el7.aarch64.rpm: mysql-community-devel-8.0.36-1.el7.aarch64
Marking ./mysql-community-devel-8.0.36-1.el7.aarch64.rpm to be installed
Examining ./mysql-community-embedded-compat-8.0.36-1.el7.aarch64.rpm: mysql-community-embedded-compat-8.0.36-1.el7.aarch64
Marking ./mysql-community-embedded-compat-8.0.36-1.el7.aarch64.rpm to be installed
Examining ./mysql-community-icu-data-files-8.0.36-1.el7.aarch64.rpm: mysql-community-icu-data-files-8.0.36-1.el7.aarch64
./mysql-community-icu-data-files-8.0.36-1.el7.aarch64.rpm: does not update installed package.
Examining ./mysql-community-libs-8.0.36-1.el7.aarch64.rpm: mysql-community-libs-8.0.36-1.el7.aarch64
./mysql-community-libs-8.0.36-1.el7.aarch64.rpm: does not update installed package.
Examining ./mysql-community-libs-compat-8.0.36-1.el7.aarch64.rpm: mysql-community-libs-compat-8.0.36-1.el7.aarch64
Marking ./mysql-community-libs-compat-8.0.36-1.el7.aarch64.rpm to be installed
Examining ./mysql-community-release-el7-5.noarch.rpm: mysql-community-release-el7-5.noarch
Marking ./mysql-community-release-el7-5.noarch.rpm to be installed
Examining ./mysql-community-server-8.0.36-1.el7.aarch64.rpm: mysql-community-server-8.0.36-1.el7.aarch64
Marking ./mysql-community-server-8.0.36-1.el7.aarch64.rpm to be installed
Examining ./mysql-community-server-debug-8.0.36-1.el7.aarch64.rpm: mysql-community-server-debug-8.0.36-1.el7.aarch64
Marking ./mysql-community-server-debug-8.0.36-1.el7.aarch64.rpm to be installed
Examining ./mysql-community-test-8.0.36-1.el7.aarch64.rpm: mysql-community-test-8.0.36-1.el7.aarch64
Marking ./mysql-community-test-8.0.36-1.el7.aarch64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-debuginfo.aarch64 0:8.0.36-1.el7 will be installed
---> Package mysql-community-devel.aarch64 0:8.0.36-1.el7 will be installed
---> Package mysql-community-embedded-compat.aarch64 0:8.0.36-1.el7 will be installed
---> Package mysql-community-libs-compat.aarch64 0:8.0.36-1.el7 will be installed
---> Package mysql-community-release.noarch 0:el7-5 will be installed
---> Package mysql-community-server.aarch64 0:8.0.36-1.el7 will be installed
--> Processing Dependency: /usr/bin/perl for package: mysql-community-server-8.0.36-1.el7.aarch64
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
base                                                                                                                                                                                                        | 3.6 kB  00:00:00
extras                                                                                                                                                                                                      | 2.9 kB  00:00:00
updates                                                                                                                                                                                                     | 2.9 kB  00:00:00
--> Processing Dependency: net-tools for package: mysql-community-server-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Getopt::Long) for package: mysql-community-server-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(strict) for package: mysql-community-server-8.0.36-1.el7.aarch64
---> Package mysql-community-server-debug.aarch64 0:8.0.36-1.el7 will be installed
---> Package mysql-community-test.aarch64 0:8.0.36-1.el7 will be installed
--> Processing Dependency: perl(Carp) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Carp) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Cwd) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Cwd) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Data::Dumper) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Data::Dumper) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Exporter) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Exporter) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Path) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Path) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Spec) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Spec) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Spec::Functions) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Spec::Functions) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Temp) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(File::Temp) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(JSON) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(JSON) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Test::More) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Time::HiRes) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(Time::HiRes) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(constant) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(threads) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Processing Dependency: perl(threads::shared) for package: mysql-community-test-8.0.36-1.el7.aarch64
--> Running transaction check
---> Package net-tools.aarch64 0:2.0-0.25.20131004git.el7 will be installed
---> Package perl.aarch64 4:5.16.3-299.el7_9 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-299.el7_9 for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-299.el7_9.aarch64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-299.el7_9.aarch64
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Data-Dumper.aarch64 0:2.145-3.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch
---> Package perl-JSON.noarch 0:2.59-2.el7 will be installed
---> Package perl-PathTools.aarch64 0:3.40-5.el7 will be installed
---> Package perl-Test-Simple.noarch 0:0.98-243.el7 will be installed
--> Processing Dependency: perl(Test::Harness) >= 2.03 for package: perl-Test-Simple-0.98-243.el7.noarch
---> Package perl-Time-HiRes.aarch64 4:1.9725-3.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-threads.aarch64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.aarch64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package perl-Filter.aarch64 0:1.49-3.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Scalar-List-Utils.aarch64 0:1.27-248.el7 will be installed
---> Package perl-Socket.aarch64 0:2.010-5.el7 will be installed
---> Package perl-Storable.aarch64 0:2.45-3.el7 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-libs.aarch64 4:5.16.3-299.el7_9 will be installed
---> Package perl-macros.aarch64 4:5.16.3-299.el7_9 will be installed
--> Running transaction check
---> Package perl-Encode.aarch64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-299.el7_9 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================================
 Package                                                  Arch                             Version                                            Repository                                                                      Size
===================================================================================================================================================================================================================================
Installing:
 mysql-community-debuginfo                                aarch64                          8.0.36-1.el7                                       /mysql-community-debuginfo-8.0.36-1.el7.aarch64                                2.8 G
 mysql-community-devel                                    aarch64                          8.0.36-1.el7                                       /mysql-community-devel-8.0.36-1.el7.aarch64                                    9.9 M
 mysql-community-embedded-compat                          aarch64                          8.0.36-1.el7                                       /mysql-community-embedded-compat-8.0.36-1.el7.aarch64                           17 M
 mysql-community-libs-compat                              aarch64                          8.0.36-1.el7                                       /mysql-community-libs-compat-8.0.36-1.el7.aarch64                              3.6 M
 mysql-community-release                                  noarch                           el7-5                                              /mysql-community-release-el7-5.noarch                                          4.3 k
 mysql-community-server                                   aarch64                          8.0.36-1.el7                                       /mysql-community-server-8.0.36-1.el7.aarch64                                   292 M
 mysql-community-server-debug                             aarch64                          8.0.36-1.el7                                       /mysql-community-server-debug-8.0.36-1.el7.aarch64                             123 M
 mysql-community-test                                     aarch64                          8.0.36-1.el7                                       /mysql-community-test-8.0.36-1.el7.aarch64                                     760 M
Installing for dependencies:
 net-tools                                                aarch64                          2.0-0.25.20131004git.el7                           base                                                                           309 k
 perl                                                     aarch64                          4:5.16.3-299.el7_9                                 updates                                                                        7.9 M
 perl-Carp                                                noarch                           1.26-244.el7                                       base                                                                            19 k
 perl-Data-Dumper                                         aarch64                          2.145-3.el7                                        base                                                                            46 k
 perl-Encode                                              aarch64                          2.51-7.el7                                         base                                                                           1.1 M
 perl-Exporter                                            noarch                           5.68-3.el7                                         base                                                                            28 k
 perl-File-Path                                           noarch                           2.09-2.el7                                         base                                                                            26 k
 perl-File-Temp                                           noarch                           0.23.01-3.el7                                      base                                                                            56 k
 perl-Filter                                              aarch64                          1.49-3.el7                                         base                                                                            76 k
 perl-Getopt-Long                                         noarch                           2.40-3.el7                                         base                                                                            56 k
 perl-HTTP-Tiny                                           noarch                           0.033-3.el7                                        base                                                                            38 k
 perl-JSON                                                noarch                           2.59-2.el7                                         base                                                                            96 k
 perl-PathTools                                           aarch64                          3.40-5.el7                                         base                                                                            82 k
 perl-Pod-Escapes                                         noarch                           1:1.04-299.el7_9                                   updates                                                                         52 k
 perl-Pod-Perldoc                                         noarch                           3.20-4.el7                                         base                                                                            87 k
 perl-Pod-Simple                                          noarch                           1:3.28-4.el7                                       base                                                                           216 k
 perl-Pod-Usage                                           noarch                           1.63-3.el7                                         base                                                                            27 k
 perl-Scalar-List-Utils                                   aarch64                          1.27-248.el7                                       base                                                                            35 k
 perl-Socket                                              aarch64                          2.010-5.el7                                        base                                                                            48 k
 perl-Storable                                            aarch64                          2.45-3.el7                                         base                                                                            73 k
 perl-Test-Harness                                        noarch                           3.28-3.el7                                         base                                                                           302 k
 perl-Test-Simple                                         noarch                           0.98-243.el7                                       base                                                                           170 k
 perl-Text-ParseWords                                     noarch                           3.29-4.el7                                         base                                                                            14 k
 perl-Time-HiRes                                          aarch64                          4:1.9725-3.el7                                     base                                                                            45 k
 perl-Time-Local                                          noarch                           1.2300-2.el7                                       base                                                                            24 k
 perl-constant                                            noarch                           1.27-2.el7                                         base                                                                            19 k
 perl-libs                                                aarch64                          4:5.16.3-299.el7_9                                 updates                                                                        621 k
 perl-macros                                              aarch64                          4:5.16.3-299.el7_9                                 updates                                                                         44 k
 perl-parent                                              noarch                           1:0.225-244.el7                                    base                                                                            12 k
 perl-podlators                                           noarch                           2.5.1-3.el7                                        base                                                                           112 k
 perl-threads                                             aarch64                          1.87-4.el7                                         base                                                                            48 k
 perl-threads-shared                                      aarch64                          1.43-6.el7                                         base                                                                            37 k

Transaction Summary
===================================================================================================================================================================================================================================
Install  8 Packages (+32 Dependent packages)

Total size: 4.0 G
Total download size: 12 M
Installed size: 4.1 G
Downloading packages:
(1/32): perl-Carp-1.26-244.el7.noarch.rpm                                                                                                                                                                   |  19 kB  00:00:00
(2/32): perl-Data-Dumper-2.145-3.el7.aarch64.rpm                                                                                                                                                            |  46 kB  00:00:00
(3/32): net-tools-2.0-0.25.20131004git.el7.aarch64.rpm                                                                                                                                                      | 309 kB  00:00:00
(4/32): perl-Exporter-5.68-3.el7.noarch.rpm                                                                                                                                                                 |  28 kB  00:00:00
(5/32): perl-Encode-2.51-7.el7.aarch64.rpm                                                                                                                                                                  | 1.1 MB  00:00:00
(6/32): perl-File-Path-2.09-2.el7.noarch.rpm                                                                                                                                                                |  26 kB  00:00:00
(7/32): perl-File-Temp-0.23.01-3.el7.noarch.rpm                                                                                                                                                             |  56 kB  00:00:00
(8/32): perl-Filter-1.49-3.el7.aarch64.rpm                                                                                                                                                                  |  76 kB  00:00:00
(9/32): perl-Getopt-Long-2.40-3.el7.noarch.rpm                                                                                                                                                              |  56 kB  00:00:00
(10/32): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm                                                                                                                                                              |  38 kB  00:00:00
(11/32): perl-JSON-2.59-2.el7.noarch.rpm                                                                                                                                                                    |  96 kB  00:00:00
(12/32): perl-5.16.3-299.el7_9.aarch64.rpm                                                                                                                                                                  | 7.9 MB  00:00:00
(13/32): perl-Pod-Escapes-1.04-299.el7_9.noarch.rpm                                                                                                                                                         |  52 kB  00:00:00
(14/32): perl-PathTools-3.40-5.el7.aarch64.rpm                                                                                                                                                              |  82 kB  00:00:00
(15/32): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm                                                                                                                                                             |  87 kB  00:00:00
(16/32): perl-Pod-Usage-1.63-3.el7.noarch.rpm                                                                                                                                                               |  27 kB  00:00:00
(17/32): perl-Scalar-List-Utils-1.27-248.el7.aarch64.rpm                                                                                                                                                    |  35 kB  00:00:00
(18/32): perl-Socket-2.010-5.el7.aarch64.rpm                                                                                                                                                                |  48 kB  00:00:00
(19/32): perl-Storable-2.45-3.el7.aarch64.rpm                                                                                                                                                               |  73 kB  00:00:00
(20/32): perl-Pod-Simple-3.28-4.el7.noarch.rpm                                                                                                                                                              | 216 kB  00:00:00
(21/32): perl-Test-Harness-3.28-3.el7.noarch.rpm                                                                                                                                                            | 302 kB  00:00:00
(22/32): perl-Test-Simple-0.98-243.el7.noarch.rpm                                                                                                                                                           | 170 kB  00:00:00
(23/32): perl-Text-ParseWords-3.29-4.el7.noarch.rpm                                                                                                                                                         |  14 kB  00:00:00
(24/32): perl-Time-Local-1.2300-2.el7.noarch.rpm                                                                                                                                                            |  24 kB  00:00:00
(25/32): perl-Time-HiRes-1.9725-3.el7.aarch64.rpm                                                                                                                                                           |  45 kB  00:00:00
(26/32): perl-constant-1.27-2.el7.noarch.rpm                                                                                                                                                                |  19 kB  00:00:00
(27/32): perl-parent-0.225-244.el7.noarch.rpm                                                                                                                                                               |  12 kB  00:00:00
(28/32): perl-threads-1.87-4.el7.aarch64.rpm                                                                                                                                                                |  48 kB  00:00:00
(29/32): perl-threads-shared-1.43-6.el7.aarch64.rpm                                                                                                                                                         |  37 kB  00:00:00
(30/32): perl-macros-5.16.3-299.el7_9.aarch64.rpm                                                                                                                                                           |  44 kB  00:00:00
(31/32): perl-libs-5.16.3-299.el7_9.aarch64.rpm                                                                                                                                                             | 621 kB  00:00:00
(32/32): perl-podlators-2.5.1-3.el7.noarch.rpm                                                                                                                                                              | 112 kB  00:00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                               10 MB/s |  12 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
2:postfix-2.10.1-7.el7.aarch64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-7.el7.aarch64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
  Installing : 1:perl-parent-0.225-244.el7.noarch                                                                                                                                                                             1/40
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                                                                                                                              2/40
  Installing : perl-podlators-2.5.1-3.el7.noarch                                                                                                                                                                              3/40
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                                                                                                                             4/40
  Installing : 1:perl-Pod-Escapes-1.04-299.el7_9.noarch                                                                                                                                                                       5/40
  Installing : perl-Encode-2.51-7.el7.aarch64                                                                                                                                                                                 6/40
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                                                                                                                                                                         7/40
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                                                                                                                                                                               8/40
  Installing : perl-threads-1.87-4.el7.aarch64                                                                                                                                                                                9/40
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.aarch64                                                                                                                                                                        10/40
  Installing : perl-Exporter-5.68-3.el7.noarch                                                                                                                                                                               11/40
  Installing : perl-constant-1.27-2.el7.noarch                                                                                                                                                                               12/40
  Installing : perl-Storable-2.45-3.el7.aarch64                                                                                                                                                                              13/40
  Installing : perl-Socket-2.010-5.el7.aarch64                                                                                                                                                                               14/40
  Installing : perl-Time-Local-1.2300-2.el7.noarch                                                                                                                                                                           15/40
  Installing : perl-Carp-1.26-244.el7.noarch                                                                                                                                                                                 16/40
  Installing : perl-threads-shared-1.43-6.el7.aarch64                                                                                                                                                                        17/40
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                                                                                                                           18/40
  Installing : perl-File-Path-2.09-2.el7.noarch                                                                                                                                                                              19/40
  Installing : perl-PathTools-3.40-5.el7.aarch64                                                                                                                                                                             20/40
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                                                                                                                                                                           21/40
  Installing : perl-Scalar-List-Utils-1.27-248.el7.aarch64                                                                                                                                                                   22/40
  Installing : 4:perl-libs-5.16.3-299.el7_9.aarch64                                                                                                                                                                          23/40
  Installing : 4:perl-macros-5.16.3-299.el7_9.aarch64                                                                                                                                                                        24/40
  Installing : perl-Filter-1.49-3.el7.aarch64                                                                                                                                                                                25/40
  Installing : perl-Getopt-Long-2.40-3.el7.noarch                                                                                                                                                                            26/40
  Installing : 4:perl-5.16.3-299.el7_9.aarch64                                                                                                                                                                               27/40
  Installing : perl-Data-Dumper-2.145-3.el7.aarch64                                                                                                                                                                          28/40
  Installing : perl-JSON-2.59-2.el7.noarch                                                                                                                                                                                   29/40
  Installing : perl-Test-Harness-3.28-3.el7.noarch                                                                                                                                                                           30/40
  Installing : perl-Test-Simple-0.98-243.el7.noarch                                                                                                                                                                          31/40
  Installing : net-tools-2.0-0.25.20131004git.el7.aarch64                                                                                                                                                                    32/40
  Installing : mysql-community-server-8.0.36-1.el7.aarch64                                                                                                                                                                   33/40
  Installing : mysql-community-server-debug-8.0.36-1.el7.aarch64                                                                                                                                                             34/40
  Installing : mysql-community-test-8.0.36-1.el7.aarch64                                                                                                                                                                     35/40
  Installing : mysql-community-embedded-compat-8.0.36-1.el7.aarch64                                                                                                                                                          36/40
  Installing : mysql-community-libs-compat-8.0.36-1.el7.aarch64                                                                                                                                                              37/40
  Installing : mysql-community-release-el7-5.noarch                                                                                                                                                                          38/40
  Installing : mysql-community-debuginfo-8.0.36-1.el7.aarch64                                                                                                                                                                39/40
  Installing : mysql-community-devel-8.0.36-1.el7.aarch64                                                                                                                                                                    40/40
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                                                                                                                              1/40
  Verifying  : perl-JSON-2.59-2.el7.noarch                                                                                                                                                                                    2/40
  Verifying  : perl-threads-1.87-4.el7.aarch64                                                                                                                                                                                3/40
  Verifying  : net-tools-2.0-0.25.20131004git.el7.aarch64                                                                                                                                                                     4/40
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.aarch64                                                                                                                                                                         5/40
  Verifying  : perl-Exporter-5.68-3.el7.noarch                                                                                                                                                                                6/40
  Verifying  : perl-constant-1.27-2.el7.noarch                                                                                                                                                                                7/40
  Verifying  : perl-Storable-2.45-3.el7.aarch64                                                                                                                                                                               8/40
  Verifying  : mysql-community-devel-8.0.36-1.el7.aarch64                                                                                                                                                                     9/40
  Verifying  : perl-threads-shared-1.43-6.el7.aarch64                                                                                                                                                                        10/40
  Verifying  : perl-Test-Simple-0.98-243.el7.noarch                                                                                                                                                                          11/40
  Verifying  : perl-Socket-2.010-5.el7.aarch64                                                                                                                                                                               12/40
  Verifying  : perl-PathTools-3.40-5.el7.aarch64                                                                                                                                                                             13/40
  Verifying  : perl-Test-Harness-3.28-3.el7.noarch                                                                                                                                                                           14/40
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                                                                                                                                                                           15/40
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                                                                                                                           16/40
  Verifying  : perl-Encode-2.51-7.el7.aarch64                                                                                                                                                                                17/40
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                                                                                                                                                                           18/40
  Verifying  : mysql-community-debuginfo-8.0.36-1.el7.aarch64                                                                                                                                                                19/40
  Verifying  : 1:perl-Pod-Escapes-1.04-299.el7_9.noarch                                                                                                                                                                      20/40
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                                                                                                                                                                        21/40
  Verifying  : perl-Carp-1.26-244.el7.noarch                                                                                                                                                                                 22/40
  Verifying  : mysql-community-release-el7-5.noarch                                                                                                                                                                          23/40
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                                                                                                                                                                            24/40
  Verifying  : mysql-community-libs-compat-8.0.36-1.el7.aarch64                                                                                                                                                              25/40
  Verifying  : mysql-community-server-debug-8.0.36-1.el7.aarch64                                                                                                                                                             26/40
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                                                                                                                                                                              27/40
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                                                                                                                            28/40
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                                                                                                                                                                             29/40
  Verifying  : mysql-community-server-8.0.36-1.el7.aarch64                                                                                                                                                                   30/40
  Verifying  : perl-File-Path-2.09-2.el7.noarch                                                                                                                                                                              31/40
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.aarch64                                                                                                                                                                   32/40
  Verifying  : 4:perl-5.16.3-299.el7_9.aarch64                                                                                                                                                                               33/40
  Verifying  : 4:perl-libs-5.16.3-299.el7_9.aarch64                                                                                                                                                                          34/40
  Verifying  : perl-Getopt-Long-2.40-3.el7.noarch                                                                                                                                                                            35/40
  Verifying  : 4:perl-macros-5.16.3-299.el7_9.aarch64                                                                                                                                                                        36/40
  Verifying  : perl-Filter-1.49-3.el7.aarch64                                                                                                                                                                                37/40
  Verifying  : mysql-community-test-8.0.36-1.el7.aarch64                                                                                                                                                                     38/40
  Verifying  : perl-Data-Dumper-2.145-3.el7.aarch64                                                                                                                                                                          39/40
  Verifying  : mysql-community-embedded-compat-8.0.36-1.el7.aarch64                                                                                                                                                          40/40

Installed:
  mysql-community-debuginfo.aarch64 0:8.0.36-1.el7       mysql-community-devel.aarch64 0:8.0.36-1.el7        mysql-community-embedded-compat.aarch64 0:8.0.36-1.el7       mysql-community-libs-compat.aarch64 0:8.0.36-1.el7
  mysql-community-release.noarch 0:el7-5                 mysql-community-server.aarch64 0:8.0.36-1.el7       mysql-community-server-debug.aarch64 0:8.0.36-1.el7          mysql-community-test.aarch64 0:8.0.36-1.el7

Dependency Installed:
  net-tools.aarch64 0:2.0-0.25.20131004git.el7    perl.aarch64 4:5.16.3-299.el7_9             perl-Carp.noarch 0:1.26-244.el7                  perl-Data-Dumper.aarch64 0:2.145-3.el7      perl-Encode.aarch64 0:2.51-7.el7
  perl-Exporter.noarch 0:5.68-3.el7               perl-File-Path.noarch 0:2.09-2.el7          perl-File-Temp.noarch 0:0.23.01-3.el7            perl-Filter.aarch64 0:1.49-3.el7            perl-Getopt-Long.noarch 0:2.40-3.el7
  perl-HTTP-Tiny.noarch 0:0.033-3.el7             perl-JSON.noarch 0:2.59-2.el7               perl-PathTools.aarch64 0:3.40-5.el7              perl-Pod-Escapes.noarch 1:1.04-299.el7_9    perl-Pod-Perldoc.noarch 0:3.20-4.el7
  perl-Pod-Simple.noarch 1:3.28-4.el7             perl-Pod-Usage.noarch 0:1.63-3.el7          perl-Scalar-List-Utils.aarch64 0:1.27-248.el7    perl-Socket.aarch64 0:2.010-5.el7           perl-Storable.aarch64 0:2.45-3.el7
  perl-Test-Harness.noarch 0:3.28-3.el7           perl-Test-Simple.noarch 0:0.98-243.el7      perl-Text-ParseWords.noarch 0:3.29-4.el7         perl-Time-HiRes.aarch64 4:1.9725-3.el7      perl-Time-Local.noarch 0:1.2300-2.el7
  perl-constant.noarch 0:1.27-2.el7               perl-libs.aarch64 4:5.16.3-299.el7_9        perl-macros.aarch64 4:5.16.3-299.el7_9           perl-parent.noarch 1:0.225-244.el7          perl-podlators.noarch 0:2.5.1-3.el7
  perl-threads.aarch64 0:1.87-4.el7               perl-threads-shared.aarch64 0:1.43-6.el7

Complete!
[root@localhost mysql-rpm]#

4.安装完成后检查mysql 

5.初始化MySQL

[root@localhost mysql-rpm]# mysqld --initialize

6.那就问了,都初始化了啥?

由上述时间可以看出,初始化是在创建一些列的文件

7.尝试启动MySQL

[root@localhost mysql]# systemctl start mysqld

 报错如下:Error: 13 (Permission denied)

8.给mysql文件授权

[root@localhost lib]# chmod -R 777 ./mysql

 9.再次尝试启动正常

10.mysql初始化目录出现了mysql.sock

这个mysql.sock应该是mysql的主机和客户机在同一host(物理服务器)上的时候,使用unix domain socket做为通讯协议的载体,它比tcp快 

11.找到MySQL初始化时的密码

利用密码:VdugGzt9dH%q登录MySQL并修改密码配置远程访问

mysql> ALTER USER USER() IDENTIFIED BY '1qaz1234';
Query OK, 0 rows affected (0.07 sec)
mysql>FLUSH PRIVILEGES;
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set host='%';
Query OK, 4 rows affected (0.04 sec)
Rows matched: 4  Changed: 4  Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION;
Query OK, 0 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)
mysql>

mysql> grant all privileges on *.* to 'root'@'%' ;
Query OK, 0 rows affected (0.02 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.02 sec)

12.测试PC客户端连接工具

13. 关闭SSL连接成功

 14.另外如果用的时navicat版本较低连接会报错

 15.请选用版本较高的navicat连接工具

16.新版本的navicat获取方式

Navicat16安装和激活详细讲解(全网最简单且靠谱)-CSDN博客

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1631745.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

MATLAB可视化图形绘制详解

图形常见的修饰命令 ①曲线修饰 曲线修饰包括曲线的顔色、线型和标示符号的设置。曲线修饰的命令格式如下。 plot(x,y,option):option定义了曲线的颜色、线型和标示符号。 MATLAB曲线修饰的各种选项见表 举例: x-2*pi:pi/50:2*pi; y1x.^2;y2cos(2*X);y3y1.*y2…

STM32应用开发教程进阶--Wi-Fi通信(ESP8266模块:STA、AP、STA+AP)

实现目标 1、熟悉Wi-F、ESP8266模块 2、掌握ESP8266模块共3种工作模式:STA、AP、STAAP的配置 3、具体实现目标:(1)AT固件烧录;(2)ESP8266模块STA、AP、STAAP的配置 一、Wi-Fi概述 1、Wi-Fi定…

pycharm配置wsl开发环境(conda)

背景 在研究qanything项目的过程中,为了进行二次开发,需要在本地搭建开发环境。然后根据文档说明发现该项目并不能直接运行在windows开发环境,但可以运行在wsl环境中。于是我需要先创建wsl环境并配置pycharm。 wsl环境创建 WSL是“Windows Su…

31 OpenCV 距离变换和分水岭算法

文章目录 距离变换分水岭算法distanceTransform 距离变换watershed 分水岭算法示例 距离变换 分水岭算法 distanceTransform 距离变换 void cv::distanceTransform (InputArray src,OutputArray dst,int distanceType,int maskSize,int dstType CV_32F) src:输入图像&#xf…

文件Tools工具 支持WORD/PDF/EXCEL/PDF等格式的转换软件

文件Tools工具 支持WORD/PDF/Excel/PDF等格式的转换软件 支持功能 Word转PDFWORD转EXCELWORD转EPUBPDF转WORDPDF转EXCELPDF转PPTPDF版本转换EXCEL转PDFEXCEL转WORDPDF转EXCELEPUB转WORDEPUB转PDFHTML转PDF(需配置chromium)点击查看配置教程简易二维码生…

Jmeter05:配置环境变量

1 Jmeter 环境 1.1 什么是环境变量?path什么用? 系统设置之一,通过设置PATH,可以让程序在DOS命令行直接启动 1.2 path怎么用 如果想让一个程序可以在DOS直接启动,需要将该程序目录配置进PATH 1.3 PATH和我们的关系…

秋招后端开发面试题 - JVM底层原理

目录 JVM底层原理前言面试题Java 对象的创建过程?什么是指针碰撞?什么是空闲列表?/ 内存分配的两种方式?JVM 里 new 对象时,堆会发生抢占吗?JVM 是怎么设计来保证线程安全的?/ 内存分配并发问题…

微星主板安装双系统不能进入Ubuntu的解决办法

在微星主板的台式机上面依次安装了Windows11和Ubuntu22.04。在Ubuntu安装完成后重启,没有出现系统选择界面,直接进入了Windows11。怎么解决?方法如下: (1)正常安装Windows11 (2)安…

面试题:斐波那契数列

题目描述: 写一个函数,输入n,求斐波那契数列的第n项.斐波那契数列定义如下: F(0) 0 F(1) 1 F(N) F(N - 1) F(N - 2), 其中 N > 1. 解题方法: 算法1: 利用递归实现,这个方法效率有严重问题,时间复杂度为O(2^n) long long Fibon(int n) {if (…

正点原子[第二期]Linux之ARM(MX6U)裸机篇学习笔记-6.5, 汇编 led.s,第一次点亮LED灯

前言: 本文是根据哔哩哔哩网站上“正点原子[第二期]Linux之ARM(MX6U)裸机篇”视频的学习笔记,在这里会记录下正点原子 I.MX6ULL 开发板的配套视频教程所作的实验和学习笔记内容。本文大量引用了正点原子教学视频和链接中的内容。…

Linux命令大全 以及搭建hadoop

Liunx系统目录 ├── bin -> usr/bin # 用于存放二进制命令 ├── boot # 内核及引导系统程序所在的目录 ├── dev # 所有设备文件的目录(如磁盘、光驱等) ├── etc # 配置文件默认路径、服务启动命令存放目录 ├── home # 用户家目录&#…

Linux驱动开发——(六)按键中断实验

目录 一、简介 二、修改设备树 2.1 添加pinctrl节点 2.2 添加KEY设备节点 2.3 检查是否被其他外设使用 三、代码 3.1 驱动代码 3.2 测试代码 3.3 平台测试 一、简介 以I.MX6U-MINI为例,实现KEY0按下后,设备识别到并将数据发送到平台。 二、修…

字典及GitHub字典爬取工具

红队API接口Fuzz字典可以用于WEB安全,渗透测试,SRC等场景 完整文件已上传知识星球,需要的朋友可加入查看。

fetch请求后端返回文件流,并下载。

前端&#xff1a; <script src"~/layui/layui.js"></script> <script src"~/Content/js/common/js/vue.min.js"></script> <script src"~/Content/js/common/js/jquery-1.10.2.min.js"></script><styl…

jvisualvm安装插件

1、打开VisualVM: Plugins Centers 找到对应JDK版本的插件点击下载即可&#xff0c;本案例以JDK1.8.0_181为例子&#xff0c;点击进去&#xff0c;再找到需要安装的插件点击下载 2、打开jvisualvm 在工具——》插件 的【已下载】tab&#xff0c;点击【添加插件 】安装下载下来 …

前端入门:HTML(css轮廓,填充,宽高)

1.CSS轮廓 注意&#xff1a; outline中&#xff0c;out-style是必须要设置的&#xff0c;格式为&#xff1a; outline-style一共有以下的几个值&#xff1a; 2.CSS填充属性 这是一个用于在一个元素的内容周围产生空间&#xff0c;也就是边框内到白框外之间的距离&#xff0c;…

Vue2 - 完成实现ElementUI中el-dialog弹窗的拖拽功能(宽度高度适配,且关闭后打开位置居中)

我们在做后台管理系统时常用到ElementUI 中的 el-Dialog,但是官方文档并未我们提供 el-Dialog弹窗如何实现拖拽功能,我们通常需要思考如何让用户能够自由地拖动弹窗,在页面上调整位置以获得更好的用户体验。在下面的博客文章中,我们将实现如何为 ElementUI 的 el-Dialog 弹…

uniapp自定义返回事件(封装)

uniapp自定义返回事件 在我们使用uniapp时&#xff0c;我们导航栏一般都是自定义的&#xff0c;比如用uview框架的导航栏&#xff0c;那么返回事件通常会遇到以下几个问题 返回事件前需要做一些额外的处理 h5项目刷新页面后返回失效 返回按钮点击后到指定页面 如果只是监听返…

【简单介绍下日常的启发式算法】

&#x1f3a5;博主&#xff1a;程序员不想YY啊 &#x1f4ab;CSDN优质创作者&#xff0c;CSDN实力新星&#xff0c;CSDN博客专家 &#x1f917;点赞&#x1f388;收藏⭐再看&#x1f4ab;养成习惯 ✨希望本文对您有所裨益&#xff0c;如有不足之处&#xff0c;欢迎在评论区提出…

PostgreSQL 14 向量相似度搜索插件 (pgvector) 安装指南

本文是关于在 PostgreSQL 14 中安装并使用向量相似度搜索插件(pgvector)的详细指南。此插件允许用户在数据库中执行高效的向量运算,特别适用于机器学习模型的向量数据存储与检索场景。 环境需求 已安装PostgreSQL 14或更高版本。安装了Visual Studio 2022,用于编译插件。安装…