当前位置:   article > 正文

MySQL:飞腾2000+Centos7.6 aarch64 部署MySQL8.0.36_aarch64centos安装mysql

aarch64centos安装mysql

目录

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.下载并安装

  1. [root@localhost ~]# wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.36-1.el7.aarch64.rpm-bundle.tar
  2. total 1092968
  3. [root@localhost ~]# tar -xvf mysql-8.0.36-1.el7.aarch64.rpm-bundle.tar -C mysql-rpm
  4. -rw-r--r-- 1 7155 31415 16142028 Dec 14 14:42 mysql-community-client-8.0.36-1.el7.aarch64.rpm
  5. -rw-r--r-- 1 7155 31415 3552480 Dec 14 14:42 mysql-community-client-plugins-8.0.36-1.el7.aarch64.rpm
  6. -rw-r--r-- 1 7155 31415 681252 Dec 14 14:42 mysql-community-common-8.0.36-1.el7.aarch64.rpm
  7. -rw-r--r-- 1 7155 31415 622144264 Dec 14 14:43 mysql-community-debuginfo-8.0.36-1.el7.aarch64.rpm
  8. -rw-r--r-- 1 7155 31415 1906476 Dec 14 14:44 mysql-community-devel-8.0.36-1.el7.aarch64.rpm
  9. -rw-r--r-- 1 7155 31415 3948036 Dec 14 14:44 mysql-community-embedded-compat-8.0.36-1.el7.aarch64.rpm
  10. -rw-r--r-- 1 7155 31415 2344460 Dec 14 14:44 mysql-community-icu-data-files-8.0.36-1.el7.aarch64.rpm
  11. -rw-r--r-- 1 7155 31415 1505692 Dec 14 14:44 mysql-community-libs-8.0.36-1.el7.aarch64.rpm
  12. -rw-r--r-- 1 7155 31415 666500 Dec 14 14:44 mysql-community-libs-compat-8.0.36-1.el7.aarch64.rpm
  13. -rw-r--r-- 1 root root 6140 Nov 12 2015 mysql-community-release-el7-5.noarch.rpm
  14. -rw-r--r-- 1 7155 31415 65412028 Dec 14 14:44 mysql-community-server-8.0.36-1.el7.aarch64.rpm
  15. -rw-r--r-- 1 7155 31415 24484504 Dec 14 14:45 mysql-community-server-debug-8.0.36-1.el7.aarch64.rpm
  16. -rw-r--r-- 1 7155 31415 376376388 Dec 14 14:46 mysql-community-test-8.0.36-1.el7.aarch64.rpm
  17. [root@localhost mysql-rpm]# yum install -y ./*
  18. Loaded plugins: fastestmirror
  19. Examining ./mysql-community-client-8.0.36-1.el7.aarch64.rpm: mysql-community-client-8.0.36-1.el7.aarch64
  20. ./mysql-community-client-8.0.36-1.el7.aarch64.rpm: does not update installed package.
  21. Examining ./mysql-community-client-plugins-8.0.36-1.el7.aarch64.rpm: mysql-community-client-plugins-8.0.36-1.el7.aarch64
  22. ./mysql-community-client-plugins-8.0.36-1.el7.aarch64.rpm: does not update installed package.
  23. Examining ./mysql-community-common-8.0.36-1.el7.aarch64.rpm: mysql-community-common-8.0.36-1.el7.aarch64
  24. ./mysql-community-common-8.0.36-1.el7.aarch64.rpm: does not update installed package.
  25. Examining ./mysql-community-debuginfo-8.0.36-1.el7.aarch64.rpm: mysql-community-debuginfo-8.0.36-1.el7.aarch64
  26. Marking ./mysql-community-debuginfo-8.0.36-1.el7.aarch64.rpm to be installed
  27. Examining ./mysql-community-devel-8.0.36-1.el7.aarch64.rpm: mysql-community-devel-8.0.36-1.el7.aarch64
  28. Marking ./mysql-community-devel-8.0.36-1.el7.aarch64.rpm to be installed
  29. Examining ./mysql-community-embedded-compat-8.0.36-1.el7.aarch64.rpm: mysql-community-embedded-compat-8.0.36-1.el7.aarch64
  30. Marking ./mysql-community-embedded-compat-8.0.36-1.el7.aarch64.rpm to be installed
  31. Examining ./mysql-community-icu-data-files-8.0.36-1.el7.aarch64.rpm: mysql-community-icu-data-files-8.0.36-1.el7.aarch64
  32. ./mysql-community-icu-data-files-8.0.36-1.el7.aarch64.rpm: does not update installed package.
  33. Examining ./mysql-community-libs-8.0.36-1.el7.aarch64.rpm: mysql-community-libs-8.0.36-1.el7.aarch64
  34. ./mysql-community-libs-8.0.36-1.el7.aarch64.rpm: does not update installed package.
  35. Examining ./mysql-community-libs-compat-8.0.36-1.el7.aarch64.rpm: mysql-community-libs-compat-8.0.36-1.el7.aarch64
  36. Marking ./mysql-community-libs-compat-8.0.36-1.el7.aarch64.rpm to be installed
  37. Examining ./mysql-community-release-el7-5.noarch.rpm: mysql-community-release-el7-5.noarch
  38. Marking ./mysql-community-release-el7-5.noarch.rpm to be installed
  39. Examining ./mysql-community-server-8.0.36-1.el7.aarch64.rpm: mysql-community-server-8.0.36-1.el7.aarch64
  40. Marking ./mysql-community-server-8.0.36-1.el7.aarch64.rpm to be installed
  41. Examining ./mysql-community-server-debug-8.0.36-1.el7.aarch64.rpm: mysql-community-server-debug-8.0.36-1.el7.aarch64
  42. Marking ./mysql-community-server-debug-8.0.36-1.el7.aarch64.rpm to be installed
  43. Examining ./mysql-community-test-8.0.36-1.el7.aarch64.rpm: mysql-community-test-8.0.36-1.el7.aarch64
  44. Marking ./mysql-community-test-8.0.36-1.el7.aarch64.rpm to be installed
  45. Resolving Dependencies
  46. --> Running transaction check
  47. ---> Package mysql-community-debuginfo.aarch64 0:8.0.36-1.el7 will be installed
  48. ---> Package mysql-community-devel.aarch64 0:8.0.36-1.el7 will be installed
  49. ---> Package mysql-community-embedded-compat.aarch64 0:8.0.36-1.el7 will be installed
  50. ---> Package mysql-community-libs-compat.aarch64 0:8.0.36-1.el7 will be installed
  51. ---> Package mysql-community-release.noarch 0:el7-5 will be installed
  52. ---> Package mysql-community-server.aarch64 0:8.0.36-1.el7 will be installed
  53. --> Processing Dependency: /usr/bin/perl for package: mysql-community-server-8.0.36-1.el7.aarch64
  54. Loading mirror speeds from cached hostfile
  55. * base: mirrors.huaweicloud.com
  56. * extras: mirrors.huaweicloud.com
  57. * updates: mirrors.huaweicloud.com
  58. base | 3.6 kB 00:00:00
  59. extras | 2.9 kB 00:00:00
  60. updates | 2.9 kB 00:00:00
  61. --> Processing Dependency: net-tools for package: mysql-community-server-8.0.36-1.el7.aarch64
  62. --> Processing Dependency: perl(Getopt::Long) for package: mysql-community-server-8.0.36-1.el7.aarch64
  63. --> Processing Dependency: perl(strict) for package: mysql-community-server-8.0.36-1.el7.aarch64
  64. ---> Package mysql-community-server-debug.aarch64 0:8.0.36-1.el7 will be installed
  65. ---> Package mysql-community-test.aarch64 0:8.0.36-1.el7 will be installed
  66. --> Processing Dependency: perl(Carp) for package: mysql-community-test-8.0.36-1.el7.aarch64
  67. --> Processing Dependency: perl(Carp) for package: mysql-community-test-8.0.36-1.el7.aarch64
  68. --> Processing Dependency: perl(Cwd) for package: mysql-community-test-8.0.36-1.el7.aarch64
  69. --> Processing Dependency: perl(Cwd) for package: mysql-community-test-8.0.36-1.el7.aarch64
  70. --> Processing Dependency: perl(Data::Dumper) for package: mysql-community-test-8.0.36-1.el7.aarch64
  71. --> Processing Dependency: perl(Data::Dumper) for package: mysql-community-test-8.0.36-1.el7.aarch64
  72. --> Processing Dependency: perl(Exporter) for package: mysql-community-test-8.0.36-1.el7.aarch64
  73. --> Processing Dependency: perl(Exporter) for package: mysql-community-test-8.0.36-1.el7.aarch64
  74. --> Processing Dependency: perl(File::Path) for package: mysql-community-test-8.0.36-1.el7.aarch64
  75. --> Processing Dependency: perl(File::Path) for package: mysql-community-test-8.0.36-1.el7.aarch64
  76. --> Processing Dependency: perl(File::Spec) for package: mysql-community-test-8.0.36-1.el7.aarch64
  77. --> Processing Dependency: perl(File::Spec) for package: mysql-community-test-8.0.36-1.el7.aarch64
  78. --> Processing Dependency: perl(File::Spec::Functions) for package: mysql-community-test-8.0.36-1.el7.aarch64
  79. --> Processing Dependency: perl(File::Spec::Functions) for package: mysql-community-test-8.0.36-1.el7.aarch64
  80. --> Processing Dependency: perl(File::Temp) for package: mysql-community-test-8.0.36-1.el7.aarch64
  81. --> Processing Dependency: perl(File::Temp) for package: mysql-community-test-8.0.36-1.el7.aarch64
  82. --> Processing Dependency: perl(JSON) for package: mysql-community-test-8.0.36-1.el7.aarch64
  83. --> Processing Dependency: perl(JSON) for package: mysql-community-test-8.0.36-1.el7.aarch64
  84. --> Processing Dependency: perl(Test::More) for package: mysql-community-test-8.0.36-1.el7.aarch64
  85. --> Processing Dependency: perl(Time::HiRes) for package: mysql-community-test-8.0.36-1.el7.aarch64
  86. --> Processing Dependency: perl(Time::HiRes) for package: mysql-community-test-8.0.36-1.el7.aarch64
  87. --> Processing Dependency: perl(constant) for package: mysql-community-test-8.0.36-1.el7.aarch64
  88. --> Processing Dependency: perl(threads) for package: mysql-community-test-8.0.36-1.el7.aarch64
  89. --> Processing Dependency: perl(threads::shared) for package: mysql-community-test-8.0.36-1.el7.aarch64
  90. --> Running transaction check
  91. ---> Package net-tools.aarch64 0:2.0-0.25.20131004git.el7 will be installed
  92. ---> Package perl.aarch64 4:5.16.3-299.el7_9 will be installed
  93. --> Processing Dependency: perl-libs = 4:5.16.3-299.el7_9 for package: 4:perl-5.16.3-299.el7_9.aarch64
  94. --> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-299.el7_9.aarch64
  95. --> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-299.el7_9.aarch64
  96. --> Processing Dependency: perl-macros for package: 4:perl-5.16.3-299.el7_9.aarch64
  97. --> Processing Dependency: perl-libs for package: 4:perl-5.16.3-299.el7_9.aarch64
  98. --> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-299.el7_9.aarch64
  99. --> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-299.el7_9.aarch64
  100. --> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-299.el7_9.aarch64
  101. --> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-299.el7_9.aarch64
  102. --> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-299.el7_9.aarch64
  103. --> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-299.el7_9.aarch64
  104. --> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-299.el7_9.aarch64
  105. --> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-299.el7_9.aarch64
  106. ---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
  107. ---> Package perl-Data-Dumper.aarch64 0:2.145-3.el7 will be installed
  108. ---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
  109. ---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
  110. ---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
  111. ---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed
  112. --> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch
  113. --> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch
  114. ---> Package perl-JSON.noarch 0:2.59-2.el7 will be installed
  115. ---> Package perl-PathTools.aarch64 0:3.40-5.el7 will be installed
  116. ---> Package perl-Test-Simple.noarch 0:0.98-243.el7 will be installed
  117. --> Processing Dependency: perl(Test::Harness) >= 2.03 for package: perl-Test-Simple-0.98-243.el7.noarch
  118. ---> Package perl-Time-HiRes.aarch64 4:1.9725-3.el7 will be installed
  119. ---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
  120. ---> Package perl-threads.aarch64 0:1.87-4.el7 will be installed
  121. ---> Package perl-threads-shared.aarch64 0:1.43-6.el7 will be installed
  122. --> Running transaction check
  123. ---> Package perl-Filter.aarch64 0:1.49-3.el7 will be installed
  124. ---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
  125. --> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
  126. --> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
  127. ---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
  128. --> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
  129. --> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
  130. ---> Package perl-Scalar-List-Utils.aarch64 0:1.27-248.el7 will be installed
  131. ---> Package perl-Socket.aarch64 0:2.010-5.el7 will be installed
  132. ---> Package perl-Storable.aarch64 0:2.45-3.el7 will be installed
  133. ---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
  134. ---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
  135. ---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
  136. ---> Package perl-libs.aarch64 4:5.16.3-299.el7_9 will be installed
  137. ---> Package perl-macros.aarch64 4:5.16.3-299.el7_9 will be installed
  138. --> Running transaction check
  139. ---> Package perl-Encode.aarch64 0:2.51-7.el7 will be installed
  140. ---> Package perl-Pod-Escapes.noarch 1:1.04-299.el7_9 will be installed
  141. ---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
  142. --> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
  143. --> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
  144. ---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
  145. --> Running transaction check
  146. ---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
  147. ---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
  148. --> Finished Dependency Resolution
  149. Dependencies Resolved
  150. ===================================================================================================================================================================================================================================
  151. Package Arch Version Repository Size
  152. ===================================================================================================================================================================================================================================
  153. Installing:
  154. mysql-community-debuginfo aarch64 8.0.36-1.el7 /mysql-community-debuginfo-8.0.36-1.el7.aarch64 2.8 G
  155. mysql-community-devel aarch64 8.0.36-1.el7 /mysql-community-devel-8.0.36-1.el7.aarch64 9.9 M
  156. mysql-community-embedded-compat aarch64 8.0.36-1.el7 /mysql-community-embedded-compat-8.0.36-1.el7.aarch64 17 M
  157. mysql-community-libs-compat aarch64 8.0.36-1.el7 /mysql-community-libs-compat-8.0.36-1.el7.aarch64 3.6 M
  158. mysql-community-release noarch el7-5 /mysql-community-release-el7-5.noarch 4.3 k
  159. mysql-community-server aarch64 8.0.36-1.el7 /mysql-community-server-8.0.36-1.el7.aarch64 292 M
  160. mysql-community-server-debug aarch64 8.0.36-1.el7 /mysql-community-server-debug-8.0.36-1.el7.aarch64 123 M
  161. mysql-community-test aarch64 8.0.36-1.el7 /mysql-community-test-8.0.36-1.el7.aarch64 760 M
  162. Installing for dependencies:
  163. net-tools aarch64 2.0-0.25.20131004git.el7 base 309 k
  164. perl aarch64 4:5.16.3-299.el7_9 updates 7.9 M
  165. perl-Carp noarch 1.26-244.el7 base 19 k
  166. perl-Data-Dumper aarch64 2.145-3.el7 base 46 k
  167. perl-Encode aarch64 2.51-7.el7 base 1.1 M
  168. perl-Exporter noarch 5.68-3.el7 base 28 k
  169. perl-File-Path noarch 2.09-2.el7 base 26 k
  170. perl-File-Temp noarch 0.23.01-3.el7 base 56 k
  171. perl-Filter aarch64 1.49-3.el7 base 76 k
  172. perl-Getopt-Long noarch 2.40-3.el7 base 56 k
  173. perl-HTTP-Tiny noarch 0.033-3.el7 base 38 k
  174. perl-JSON noarch 2.59-2.el7 base 96 k
  175. perl-PathTools aarch64 3.40-5.el7 base 82 k
  176. perl-Pod-Escapes noarch 1:1.04-299.el7_9 updates 52 k
  177. perl-Pod-Perldoc noarch 3.20-4.el7 base 87 k
  178. perl-Pod-Simple noarch 1:3.28-4.el7 base 216 k
  179. perl-Pod-Usage noarch 1.63-3.el7 base 27 k
  180. perl-Scalar-List-Utils aarch64 1.27-248.el7 base 35 k
  181. perl-Socket aarch64 2.010-5.el7 base 48 k
  182. perl-Storable aarch64 2.45-3.el7 base 73 k
  183. perl-Test-Harness noarch 3.28-3.el7 base 302 k
  184. perl-Test-Simple noarch 0.98-243.el7 base 170 k
  185. perl-Text-ParseWords noarch 3.29-4.el7 base 14 k
  186. perl-Time-HiRes aarch64 4:1.9725-3.el7 base 45 k
  187. perl-Time-Local noarch 1.2300-2.el7 base 24 k
  188. perl-constant noarch 1.27-2.el7 base 19 k
  189. perl-libs aarch64 4:5.16.3-299.el7_9 updates 621 k
  190. perl-macros aarch64 4:5.16.3-299.el7_9 updates 44 k
  191. perl-parent noarch 1:0.225-244.el7 base 12 k
  192. perl-podlators noarch 2.5.1-3.el7 base 112 k
  193. perl-threads aarch64 1.87-4.el7 base 48 k
  194. perl-threads-shared aarch64 1.43-6.el7 base 37 k
  195. Transaction Summary
  196. ===================================================================================================================================================================================================================================
  197. Install 8 Packages (+32 Dependent packages)
  198. Total size: 4.0 G
  199. Total download size: 12 M
  200. Installed size: 4.1 G
  201. Downloading packages:
  202. (1/32): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:00:00
  203. (2/32): perl-Data-Dumper-2.145-3.el7.aarch64.rpm | 46 kB 00:00:00
  204. (3/32): net-tools-2.0-0.25.20131004git.el7.aarch64.rpm | 309 kB 00:00:00
  205. (4/32): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00:00
  206. (5/32): perl-Encode-2.51-7.el7.aarch64.rpm | 1.1 MB 00:00:00
  207. (6/32): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00:00
  208. (7/32): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00:00
  209. (8/32): perl-Filter-1.49-3.el7.aarch64.rpm | 76 kB 00:00:00
  210. (9/32): perl-Getopt-Long-2.40-3.el7.noarch.rpm | 56 kB 00:00:00
  211. (10/32): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00:00
  212. (11/32): perl-JSON-2.59-2.el7.noarch.rpm | 96 kB 00:00:00
  213. (12/32): perl-5.16.3-299.el7_9.aarch64.rpm | 7.9 MB 00:00:00
  214. (13/32): perl-Pod-Escapes-1.04-299.el7_9.noarch.rpm | 52 kB 00:00:00
  215. (14/32): perl-PathTools-3.40-5.el7.aarch64.rpm | 82 kB 00:00:00
  216. (15/32): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00:00
  217. (16/32): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00:00
  218. (17/32): perl-Scalar-List-Utils-1.27-248.el7.aarch64.rpm | 35 kB 00:00:00
  219. (18/32): perl-Socket-2.010-5.el7.aarch64.rpm | 48 kB 00:00:00
  220. (19/32): perl-Storable-2.45-3.el7.aarch64.rpm | 73 kB 00:00:00
  221. (20/32): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:00:00
  222. (21/32): perl-Test-Harness-3.28-3.el7.noarch.rpm | 302 kB 00:00:00
  223. (22/32): perl-Test-Simple-0.98-243.el7.noarch.rpm | 170 kB 00:00:00
  224. (23/32): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00:00
  225. (24/32): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00:00
  226. (25/32): perl-Time-HiRes-1.9725-3.el7.aarch64.rpm | 45 kB 00:00:00
  227. (26/32): perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00:00
  228. (27/32): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00:00
  229. (28/32): perl-threads-1.87-4.el7.aarch64.rpm | 48 kB 00:00:00
  230. (29/32): perl-threads-shared-1.43-6.el7.aarch64.rpm | 37 kB 00:00:00
  231. (30/32): perl-macros-5.16.3-299.el7_9.aarch64.rpm | 44 kB 00:00:00
  232. (31/32): perl-libs-5.16.3-299.el7_9.aarch64.rpm | 621 kB 00:00:00
  233. (32/32): perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00:00
  234. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  235. Total 10 MB/s | 12 MB 00:00:01
  236. Running transaction check
  237. Running transaction test
  238. Transaction test succeeded
  239. Running transaction
  240. Warning: RPMDB altered outside of yum.
  241. ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
  242. 2:postfix-2.10.1-7.el7.aarch64 has missing requires of libmysqlclient.so.18()(64bit)
  243. 2:postfix-2.10.1-7.el7.aarch64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
  244. Installing : 1:perl-parent-0.225-244.el7.noarch 1/40
  245. Installing : perl-HTTP-Tiny-0.033-3.el7.noarch 2/40
  246. Installing : perl-podlators-2.5.1-3.el7.noarch 3/40
  247. Installing : perl-Pod-Perldoc-3.20-4.el7.noarch 4/40
  248. Installing : 1:perl-Pod-Escapes-1.04-299.el7_9.noarch 5/40
  249. Installing : perl-Encode-2.51-7.el7.aarch64 6/40
  250. Installing : perl-Text-ParseWords-3.29-4.el7.noarch 7/40
  251. Installing : perl-Pod-Usage-1.63-3.el7.noarch 8/40
  252. Installing : perl-threads-1.87-4.el7.aarch64 9/40
  253. Installing : 4:perl-Time-HiRes-1.9725-3.el7.aarch64 10/40
  254. Installing : perl-Exporter-5.68-3.el7.noarch 11/40
  255. Installing : perl-constant-1.27-2.el7.noarch 12/40
  256. Installing : perl-Storable-2.45-3.el7.aarch64 13/40
  257. Installing : perl-Socket-2.010-5.el7.aarch64 14/40
  258. Installing : perl-Time-Local-1.2300-2.el7.noarch 15/40
  259. Installing : perl-Carp-1.26-244.el7.noarch 16/40
  260. Installing : perl-threads-shared-1.43-6.el7.aarch64 17/40
  261. Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch 18/40
  262. Installing : perl-File-Path-2.09-2.el7.noarch 19/40
  263. Installing : perl-PathTools-3.40-5.el7.aarch64 20/40
  264. Installing : perl-File-Temp-0.23.01-3.el7.noarch 21/40
  265. Installing : perl-Scalar-List-Utils-1.27-248.el7.aarch64 22/40
  266. Installing : 4:perl-libs-5.16.3-299.el7_9.aarch64 23/40
  267. Installing : 4:perl-macros-5.16.3-299.el7_9.aarch64 24/40
  268. Installing : perl-Filter-1.49-3.el7.aarch64 25/40
  269. Installing : perl-Getopt-Long-2.40-3.el7.noarch 26/40
  270. Installing : 4:perl-5.16.3-299.el7_9.aarch64 27/40
  271. Installing : perl-Data-Dumper-2.145-3.el7.aarch64 28/40
  272. Installing : perl-JSON-2.59-2.el7.noarch 29/40
  273. Installing : perl-Test-Harness-3.28-3.el7.noarch 30/40
  274. Installing : perl-Test-Simple-0.98-243.el7.noarch 31/40
  275. Installing : net-tools-2.0-0.25.20131004git.el7.aarch64 32/40
  276. Installing : mysql-community-server-8.0.36-1.el7.aarch64 33/40
  277. Installing : mysql-community-server-debug-8.0.36-1.el7.aarch64 34/40
  278. Installing : mysql-community-test-8.0.36-1.el7.aarch64 35/40
  279. Installing : mysql-community-embedded-compat-8.0.36-1.el7.aarch64 36/40
  280. Installing : mysql-community-libs-compat-8.0.36-1.el7.aarch64 37/40
  281. Installing : mysql-community-release-el7-5.noarch 38/40
  282. Installing : mysql-community-debuginfo-8.0.36-1.el7.aarch64 39/40
  283. Installing : mysql-community-devel-8.0.36-1.el7.aarch64 40/40
  284. Verifying : perl-HTTP-Tiny-0.033-3.el7.noarch 1/40
  285. Verifying : perl-JSON-2.59-2.el7.noarch 2/40
  286. Verifying : perl-threads-1.87-4.el7.aarch64 3/40
  287. Verifying : net-tools-2.0-0.25.20131004git.el7.aarch64 4/40
  288. Verifying : 4:perl-Time-HiRes-1.9725-3.el7.aarch64 5/40
  289. Verifying : perl-Exporter-5.68-3.el7.noarch 6/40
  290. Verifying : perl-constant-1.27-2.el7.noarch 7/40
  291. Verifying : perl-Storable-2.45-3.el7.aarch64 8/40
  292. Verifying : mysql-community-devel-8.0.36-1.el7.aarch64 9/40
  293. Verifying : perl-threads-shared-1.43-6.el7.aarch64 10/40
  294. Verifying : perl-Test-Simple-0.98-243.el7.noarch 11/40
  295. Verifying : perl-Socket-2.010-5.el7.aarch64 12/40
  296. Verifying : perl-PathTools-3.40-5.el7.aarch64 13/40
  297. Verifying : perl-Test-Harness-3.28-3.el7.noarch 14/40
  298. Verifying : perl-File-Temp-0.23.01-3.el7.noarch 15/40
  299. Verifying : 1:perl-Pod-Simple-3.28-4.el7.noarch 16/40
  300. Verifying : perl-Encode-2.51-7.el7.aarch64 17/40
  301. Verifying : perl-Time-Local-1.2300-2.el7.noarch 18/40
  302. Verifying : mysql-community-debuginfo-8.0.36-1.el7.aarch64 19/40
  303. Verifying : 1:perl-Pod-Escapes-1.04-299.el7_9.noarch 20/40
  304. Verifying : perl-Text-ParseWords-3.29-4.el7.noarch 21/40
  305. Verifying : perl-Carp-1.26-244.el7.noarch 22/40
  306. Verifying : mysql-community-release-el7-5.noarch 23/40
  307. Verifying : 1:perl-parent-0.225-244.el7.noarch 24/40
  308. Verifying : mysql-community-libs-compat-8.0.36-1.el7.aarch64 25/40
  309. Verifying : mysql-community-server-debug-8.0.36-1.el7.aarch64 26/40
  310. Verifying : perl-Pod-Usage-1.63-3.el7.noarch 27/40
  311. Verifying : perl-Pod-Perldoc-3.20-4.el7.noarch 28/40
  312. Verifying : perl-podlators-2.5.1-3.el7.noarch 29/40
  313. Verifying : mysql-community-server-8.0.36-1.el7.aarch64 30/40
  314. Verifying : perl-File-Path-2.09-2.el7.noarch 31/40
  315. Verifying : perl-Scalar-List-Utils-1.27-248.el7.aarch64 32/40
  316. Verifying : 4:perl-5.16.3-299.el7_9.aarch64 33/40
  317. Verifying : 4:perl-libs-5.16.3-299.el7_9.aarch64 34/40
  318. Verifying : perl-Getopt-Long-2.40-3.el7.noarch 35/40
  319. Verifying : 4:perl-macros-5.16.3-299.el7_9.aarch64 36/40
  320. Verifying : perl-Filter-1.49-3.el7.aarch64 37/40
  321. Verifying : mysql-community-test-8.0.36-1.el7.aarch64 38/40
  322. Verifying : perl-Data-Dumper-2.145-3.el7.aarch64 39/40
  323. Verifying : mysql-community-embedded-compat-8.0.36-1.el7.aarch64 40/40
  324. Installed:
  325. 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
  326. 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
  327. Dependency Installed:
  328. 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
  329. 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
  330. 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
  331. 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
  332. 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
  333. 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
  334. perl-threads.aarch64 0:1.87-4.el7 perl-threads-shared.aarch64 0:1.43-6.el7
  335. Complete!
  336. [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并修改密码配置远程访问

  1. mysql> ALTER USER USER() IDENTIFIED BY '1qaz1234';
  2. Query OK, 0 rows affected (0.07 sec)
  3. mysql>FLUSH PRIVILEGES;
  4. mysql> use mysql;
  5. Reading table information for completion of table and column names
  6. You can turn off this feature to get a quicker startup with -A
  7. Database changed
  8. mysql> update user set host='%';
  9. Query OK, 4 rows affected (0.04 sec)
  10. Rows matched: 4 Changed: 4 Warnings: 0
  11. mysql> flush privileges;
  12. Query OK, 0 rows affected (0.02 sec)
  13. mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION;
  14. Query OK, 0 rows affected (0.04 sec)
  15. mysql> flush privileges;
  16. Query OK, 0 rows affected (0.02 sec)
  17. mysql>
  18. mysql> grant all privileges on *.* to 'root'@'%' ;
  19. Query OK, 0 rows affected (0.02 sec)
  20. mysql> FLUSH PRIVILEGES;
  21. Query OK, 0 rows affected (0.02 sec)

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

13. 关闭SSL连接成功

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

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

16.新版本的navicat获取方式

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/544578
推荐阅读
相关标签
  

闽ICP备14008679号