找回密码
 注册
查看: 182|回复: 0

centos 8.5安装mariadb 12.1.2版本

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2026-2-1 07:32:15 | 显示全部楼层 |阅读模式
7 h" E& q2 H+ o& p+ J! u  d5 f
[root@guoyuan yum.repos.d]# dnf install MariaDB-server
4 n: O  `) N- K3 C* x, Q  }& s: iCentOS-8.5.2111 - Base - mirrors.aliyun.com                                                                                           8.3 MB/s | 4.6 MB     00:00    ) E" w' t9 V' I
CentOS-8.5.2111 - Extras - mirrors.aliyun.com                                                                                          32 kB/s |  10 kB     00:00    ! T. g  z. t3 ^% D8 ?5 p, P
CentOS-8.5.2111 - AppStream - mirrors.aliyun.com                                                                                       10 MB/s | 8.4 MB     00:00    " L  x6 |8 ~8 w- l
MariaDB Server                                                                                                                         11 kB/s | 789 kB     01:09    * \* Y: @/ w  ^  F
MariaDB MaxScale                                                                                                                      103  B/s | 6.9 kB     01:08    9 [, q. D& K! V, Z
依赖关系解决。
7 ~3 y! a, Q1 b6 c) Q4 s======================================================================================================================================================================
3 s- j) h; u) J: T. j# q 软件包                                         架构                            版本                                      仓库                                   大小5 [) J4 _6 V/ U5 i
======================================================================================================================================================================4 s; S' z+ x( E
安装:5 b& i2 C+ \% H# N3 Y! r) U$ P$ {
MariaDB-devel                                  x86_64                          12.1.2-1.el8                              mariadb-main                          9.0 M- {2 z: J0 m0 p
     替换  mariadb-connector-c-devel.x86_64 3.1.11-2.el8_3
) P* N/ z' k! w MariaDB-server                                 x86_64                          12.1.2-1.el8                              mariadb-main                           28 M, N3 B1 n# r; N. ?7 N" y
安装依赖关系:  G$ L  ]- ~) @8 W& ~" j0 W, A
MariaDB-client                                 x86_64                          12.1.2-1.el8                              mariadb-main                           17 M
( b# i2 }3 s: g* ^% W MariaDB-common                                 x86_64                          12.1.2-1.el8                              mariadb-main                           91 k& ?0 }) Z2 ^4 S+ E: H% ?8 {& {# K
MariaDB-shared                                 x86_64                          12.1.2-1.el8                              mariadb-main                          128 k% `0 G3 r; S, A( k6 q% A* b7 Z  L
     替换  mariadb-connector-c.x86_64 3.1.11-2.el8_3
9 `( F/ s# X+ T$ ~! i- r+ l     替换  mariadb-connector-c-config.noarch 3.1.11-2.el8_3
/ M  v# }" o& |  _6 L, m( W galera-4                                       x86_64                          26.4.24-1.el8                             mariadb-main                          1.5 M# s$ C0 e5 U9 K( `
安装弱的依赖:
6 x* \+ O9 y4 p4 f& N MariaDB-client-compat                          noarch                          12.1.2-1.el8                              mariadb-main                           11 k( O* I; [- ], W6 {9 u
MariaDB-server-compat                          noarch                          12.1.2-1.el8                              mariadb-main                          8.9 k4 g" T  G2 }9 U2 R
socat                                          x86_64                          1.7.4.1-1.el8                             AppStream                             323 k
  r0 n7 H4 a# E+ z2 e0 |. G5 u4 F. ^% _/ _* i+ l7 g
事务概要' {& k  l. j$ j
======================================================================================================================================================================
3 ^9 M' J! X& ~8 O! w1 D安装  9 软件包; c" ]. k8 k: f( ^
1 q2 a0 t9 m) u6 n( _; F8 b$ Q
总下载:56 M2 d$ \9 m' t& H6 P# _+ g" \
确定吗?[y/N]: y7 [& t& M% h. B' V9 N, @
下载软件包:# \" z  r/ o! m2 k5 S
(1/9): socat-1.7.4.1-1.el8.x86_64.rpm                                                                                                 1.0 MB/s | 323 kB     00:00   
9 a$ A1 e6 M+ c* D$ \( Q( y# R- A(2/9): MariaDB-client-compat-12.1.2-1.el8.noarch.rpm                                                                                  4.3 kB/s |  11 kB     00:02    ' N- P' b* W# h( b$ `  f7 o* r- {* g
(3/9): MariaDB-common-12.1.2-1.el8.x86_64.rpm                                                                                          30 kB/s |  91 kB     00:03   
; F8 I0 S, O  N6 t7 }( z7 B7 M(4/9): MariaDB-devel-12.1.2-1.el8.x86_64.rpm                                                                                          1.4 MB/s | 9.0 MB     00:06   
( M9 r* a# d* p) N(5/9): MariaDB-server-compat-12.1.2-1.el8.noarch.rpm                                                                                  9.5 kB/s | 8.9 kB     00:00   
/ V1 w* _4 I0 {% d(6/9): MariaDB-shared-12.1.2-1.el8.x86_64.rpm                                                                                         133 kB/s | 128 kB     00:00    ) R; u8 W4 @  q4 m
(7/9): galera-4-26.4.24-1.el8.x86_64.rpm                                                                                              976 kB/s | 1.5 MB     00:01    ) W0 j+ s; C# m
(8/9): MariaDB-client-12.1.2-1.el8.x86_64.rpm                                                                                         132 kB/s |  17 MB     02:12    ! l% j" ^" i7 C( q8 E$ Q
(9/9): MariaDB-server-12.1.2-1.el8.x86_64.rpm                                                                                         159 kB/s |  28 MB     02:57   
4 V8 @2 h5 |) T% O----------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 M8 g1 Q! Y9 D- s总计                                                                                                                                  315 kB/s |  56 MB     03:01     
2 F. D) Z9 R0 n/ d: S运行事务检查
$ e/ J1 h1 b- b! i8 Q% f' f& R9 m) O事务检查成功。6 n) l; X. q6 A# F$ Y8 C0 D
运行事务测试6 K5 }  ]; A7 R% G
事务测试成功。
7 D0 f0 a7 A( ~. x% M' q- f! n运行事务( p. J$ Z4 n: C+ ?+ {% j4 P
  准备中  :                                                                                                                                                       1/1 ' e' Q; u9 j' r" x$ W2 k# V! X
  安装    : MariaDB-shared-12.1.2-1.el8.x86_64                                                                                                                   1/12 2 V8 m& I! {+ m5 F. S- U. |
  运行脚本: MariaDB-shared-12.1.2-1.el8.x86_64                                                                                                                   1/12 4 ?" u* T' p; p2 d& ~
  安装    : MariaDB-common-12.1.2-1.el8.x86_64                                                                                                                   2/12
7 ^" F9 O  E3 z/ S+ ^) n9 y  安装    : MariaDB-client-compat-12.1.2-1.el8.noarch                                                                                                            3/12
. U9 o% w& U! K$ L/ i5 u, i  安装    : MariaDB-client-12.1.2-1.el8.x86_64                                                                                                                   4/12
+ B9 C: T7 U1 Y/ }5 P  安装    : galera-4-26.4.24-1.el8.x86_64                                                                                                                        5/12
" ?6 k2 ]8 a9 C! d1 r$ n1 |0 x* S) a  运行脚本: galera-4-26.4.24-1.el8.x86_64                                                                                                                        5/12   M7 Z9 |( {5 N( t, C
  安装    : socat-1.7.4.1-1.el8.x86_64                                                                                                                           6/12
+ k! g9 W" V9 S  安装    : MariaDB-server-compat-12.1.2-1.el8.noarch                                                                                                            7/12
6 v* I  K7 p2 W0 i5 f  运行脚本: MariaDB-server-12.1.2-1.el8.x86_64                                                                                                                   8/12 " N9 E+ \6 u' I+ D
  安装    : MariaDB-server-12.1.2-1.el8.x86_64                                                                                                                   8/12 ' @# T5 _  O1 A! T' \3 _
  运行脚本: MariaDB-server-12.1.2-1.el8.x86_64                                                                                                                   8/12 " W- }5 q: `8 |: ]; ?  Z6 g. n
# \7 f' _7 L* J  \* k# ~

! u- M9 A% e9 E, k1 nTwo all-privilege accounts were created.$ W9 E$ H5 ?/ O- o, H4 U& @" M
One is root@localhost, it has no password, but you need to8 @+ `+ z# m7 L$ y. ~
be system 'root' user to connect. Use, for example, sudo mariadb% d! s: E7 ~! a- m# \9 K1 d  p
The second is mysql@localhost, it has no password either, but+ s: N4 l# G  x# E; c4 b5 m$ s; V
you need to be the system 'mysql' user to connect.
$ T3 R% Z2 u" I9 L: G1 K" }After connecting you can set the password, if you would need to be/ O* _/ y- S8 K" |
able to connect as any of these users with a password and without sudo
% j" e( e0 \7 ^8 W7 U! K5 n  y0 n! U# W+ V/ N
See the MariaDB Knowledgebase at https://mariadb.com/kb
; k4 r& A* }, D+ T' r$ A
9 |8 I/ z5 J3 R3 I  G3 `$ sPlease report any problems at https://mariadb.org/jira
- d3 l9 |: e1 d& _
( ]% s0 ?% V  w0 ]6 tThe latest information about MariaDB is available at https://mariadb.org/.( [2 ?% m/ @: u% x. W

4 O7 h% f6 Q, ~- ^5 F. p9 H7 dConsider joining MariaDB's strong and vibrant community:
8 H& h0 c6 R2 ?# [% y+ X% Shttps://mariadb.org/get-involved// `! v7 Z4 v$ O- i3 K6 L+ m. F
" E# |0 a$ \0 S; r/ v; Z% p6 k
0 r5 J) o1 k4 u
  安装    : MariaDB-devel-12.1.2-1.el8.x86_64                                                                                                                    9/12
" m* V, ^/ ^& @: }+ ?  废弃    : mariadb-connector-c-devel-3.1.11-2.el8_3.x86_64                                                                                                     10/12 0 R4 B* H3 U1 B  L
  废弃    : mariadb-connector-c-3.1.11-2.el8_3.x86_64                                                                                                           11/12 3 q- Z7 Y* z% I- H8 o) O# d" u+ t
  废弃    : mariadb-connector-c-config-3.1.11-2.el8_3.noarch                                                                                                    12/12 ' N$ W7 q! W" H$ b  g6 B
  运行脚本: MariaDB-server-12.1.2-1.el8.x86_64                                                                                                                  12/12 3 Y$ C% z# `, X! X
  运行脚本: mariadb-connector-c-config-3.1.11-2.el8_3.noarch                                                                                                    12/12
) I" O. U* r  v7 a! N  Y% x2 V8 W  验证    : socat-1.7.4.1-1.el8.x86_64                                                                                                                           1/12
; P" z' n  K- A5 W  验证    : MariaDB-client-12.1.2-1.el8.x86_64                                                                                                                   2/12
0 D: }1 n/ o0 _3 y; r  验证    : MariaDB-client-compat-12.1.2-1.el8.noarch                                                                                                            3/12
" L" O1 r) g2 m3 ]9 t! l+ F' d/ Q  验证    : MariaDB-common-12.1.2-1.el8.x86_64                                                                                                                   4/12 0 p; f3 i: |3 q& N8 O; T
  验证    : MariaDB-devel-12.1.2-1.el8.x86_64                                                                                                                    5/12
% \5 o5 a% Y$ Y0 E9 G; N' S% v2 X# i  验证    : mariadb-connector-c-devel-3.1.11-2.el8_3.x86_64                                                                                                      6/12
, \0 k3 [7 @( h" B  验证    : MariaDB-server-12.1.2-1.el8.x86_64                                                                                                                   7/12
, b! n+ X. [/ c6 p  验证    : MariaDB-server-compat-12.1.2-1.el8.noarch                                                                                                            8/12
. m5 {3 k! w8 A) N) ~1 J  验证    : MariaDB-shared-12.1.2-1.el8.x86_64                                                                                                                   9/12
" R" _( E; A+ C3 ]8 t  验证    : mariadb-connector-c-3.1.11-2.el8_3.x86_64                                                                                                           10/12 & R7 I* }$ y) B1 n+ ^
  验证    : mariadb-connector-c-config-3.1.11-2.el8_3.noarch                                                                                                    11/12
# c  s( N& j( s" T/ i* ^  验证    : galera-4-26.4.24-1.el8.x86_64                                                                                                                       12/12 ; w* M( ^4 G) k# k/ l

3 \: o$ S" g2 F  d已安装:! @. H4 S: a. ^4 {  S
  MariaDB-client-12.1.2-1.el8.x86_64     MariaDB-client-compat-12.1.2-1.el8.noarch     MariaDB-common-12.1.2-1.el8.x86_64     MariaDB-devel-12.1.2-1.el8.x86_64      b$ u3 i& N$ Y: m+ X+ d  X
  MariaDB-server-12.1.2-1.el8.x86_64     MariaDB-server-compat-12.1.2-1.el8.noarch     MariaDB-shared-12.1.2-1.el8.x86_64     galera-4-26.4.24-1.el8.x86_64        
1 x7 g& Q- I+ j3 t& j$ }  socat-1.7.4.1-1.el8.x86_64            : D8 c  o- ^4 g) z  x7 v
* a3 {0 M4 ]6 U, M/ j
完毕!# i! }. G, _/ ~! _  e( C
6 X) Y7 d0 E% b5 O5 n

4 S8 [; m& |$ }8 _8 f- G
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 23:58 , Processed in 0.070252 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表