|
|
( S7 y4 Y0 j3 y" N7 ~: m
[root@guoyuan yum.repos.d]# dnf install MariaDB-server
# g6 B9 J# {9 I. r5 oCentOS-8.5.2111 - Base - mirrors.aliyun.com 8.3 MB/s | 4.6 MB 00:00
9 l- J& x7 |( e" H) ^) sCentOS-8.5.2111 - Extras - mirrors.aliyun.com 32 kB/s | 10 kB 00:00
/ u; m& K9 l" P x; M; K; CCentOS-8.5.2111 - AppStream - mirrors.aliyun.com 10 MB/s | 8.4 MB 00:00 % @7 K4 Q, W7 J w7 F% G/ | t
MariaDB Server 11 kB/s | 789 kB 01:09 * |1 b$ S+ _" ?/ b% _0 J
MariaDB MaxScale 103 B/s | 6.9 kB 01:08 9 ?3 X$ x) {, W
依赖关系解决。
% A2 e8 w$ n9 P2 d======================================================================================================================================================================' w% O5 X9 j e1 d2 U4 U: a" n
软件包 架构 版本 仓库 大小
! X' \4 P0 r3 b# W3 h: |======================================================================================================================================================================; E( R) E, [& S) @9 x' @# x- U
安装:) x, o1 w! |9 r2 L
MariaDB-devel x86_64 12.1.2-1.el8 mariadb-main 9.0 M
# v3 w8 `0 A+ m9 ~ 替换 mariadb-connector-c-devel.x86_64 3.1.11-2.el8_3
( O! T) l1 K$ p; g: _ MariaDB-server x86_64 12.1.2-1.el8 mariadb-main 28 M e4 m3 X- h; {- D
安装依赖关系:
?! `9 I7 U3 z6 H/ v- i% ~ MariaDB-client x86_64 12.1.2-1.el8 mariadb-main 17 M
1 Y6 t! | D3 T W; s0 J7 y- o& ` MariaDB-common x86_64 12.1.2-1.el8 mariadb-main 91 k
1 P% w% s7 P+ O7 e+ D7 A% k MariaDB-shared x86_64 12.1.2-1.el8 mariadb-main 128 k
/ y5 v5 O7 u Q# h( W9 t2 t5 A 替换 mariadb-connector-c.x86_64 3.1.11-2.el8_3) y! [3 u$ w, K* ~
替换 mariadb-connector-c-config.noarch 3.1.11-2.el8_3- ?3 p+ B4 _; u* T) J( D
galera-4 x86_64 26.4.24-1.el8 mariadb-main 1.5 M
$ d, }- H, e8 K3 i4 z4 [. P7 m* a5 k安装弱的依赖:
" n: k! Y8 j, z- L% D* g MariaDB-client-compat noarch 12.1.2-1.el8 mariadb-main 11 k
) I, { k. O6 w4 B7 D; Y MariaDB-server-compat noarch 12.1.2-1.el8 mariadb-main 8.9 k
& a P+ |! T5 J h: @2 i0 Y6 H) l' P" W socat x86_64 1.7.4.1-1.el8 AppStream 323 k2 G4 ?5 t( p8 C) W# Z' {/ T9 R7 ~$ H
& `: {1 Z; s3 x8 M
事务概要! ~, D9 ^+ Z! b; v
======================================================================================================================================================================
) N8 b X$ q( y& K8 o安装 9 软件包
2 s4 ?6 {# [+ `8 }) d! e9 b) N+ o; T q7 i" c: X2 q
总下载:56 M
* A" a+ M7 L6 S6 n# A+ R/ l/ V1 H确定吗?[y/N]: y0 ^( s$ U; r: u& j
下载软件包:, u" B2 ^! U3 J: j
(1/9): socat-1.7.4.1-1.el8.x86_64.rpm 1.0 MB/s | 323 kB 00:00 3 Q# F c) {3 _6 [
(2/9): MariaDB-client-compat-12.1.2-1.el8.noarch.rpm 4.3 kB/s | 11 kB 00:02 3 `1 o5 S5 d2 e' R: R
(3/9): MariaDB-common-12.1.2-1.el8.x86_64.rpm 30 kB/s | 91 kB 00:03
( U# f) q" x8 c% j" }, }(4/9): MariaDB-devel-12.1.2-1.el8.x86_64.rpm 1.4 MB/s | 9.0 MB 00:06 + Y' A; B9 R# r( {# K
(5/9): MariaDB-server-compat-12.1.2-1.el8.noarch.rpm 9.5 kB/s | 8.9 kB 00:00
- }3 T5 z5 b, T: Q* p4 F(6/9): MariaDB-shared-12.1.2-1.el8.x86_64.rpm 133 kB/s | 128 kB 00:00
1 E6 m0 Y6 k( _7 n(7/9): galera-4-26.4.24-1.el8.x86_64.rpm 976 kB/s | 1.5 MB 00:01 4 g1 o7 i+ S1 V
(8/9): MariaDB-client-12.1.2-1.el8.x86_64.rpm 132 kB/s | 17 MB 02:12
6 ^2 `# Q3 r3 F+ z3 y+ y(9/9): MariaDB-server-12.1.2-1.el8.x86_64.rpm 159 kB/s | 28 MB 02:57 ( ?7 y/ ?4 f& ]4 N8 {' x$ J
----------------------------------------------------------------------------------------------------------------------------------------------------------------------" J% _- y8 y" d# |2 s
总计 315 kB/s | 56 MB 03:01
$ q; V% v) B9 N! z6 ]! y5 v运行事务检查
/ M' f% W: z; u* v9 B/ {" Y2 Z事务检查成功。
: c6 G* \7 L v; n: D5 {运行事务测试
: d: b+ f& I# N; y0 S事务测试成功。7 n2 H8 A: ^4 C" G
运行事务
3 _0 z) f/ C7 u" o 准备中 : 1/1
9 f% a; I. R( L8 u* w5 c% L 安装 : MariaDB-shared-12.1.2-1.el8.x86_64 1/12 , B; r. f( t: p" A+ g9 ?1 p
运行脚本: MariaDB-shared-12.1.2-1.el8.x86_64 1/12 ; t4 }$ `1 U& u! N
安装 : MariaDB-common-12.1.2-1.el8.x86_64 2/12 1 R( Q, X( P9 c c j
安装 : MariaDB-client-compat-12.1.2-1.el8.noarch 3/12
; `! [1 t$ @9 P" @7 A( ~7 X 安装 : MariaDB-client-12.1.2-1.el8.x86_64 4/12 7 E# s9 u0 ^2 F( D7 {
安装 : galera-4-26.4.24-1.el8.x86_64 5/12
, U0 W4 ~+ e# v7 I 运行脚本: galera-4-26.4.24-1.el8.x86_64 5/12 3 S& T' }( C; _: m( t
安装 : socat-1.7.4.1-1.el8.x86_64 6/12
; F6 i3 Y; i8 R8 U5 n 安装 : MariaDB-server-compat-12.1.2-1.el8.noarch 7/12
0 }# ~% d0 R; [ 运行脚本: MariaDB-server-12.1.2-1.el8.x86_64 8/12
/ V. P, |2 e8 `3 s* J d 安装 : MariaDB-server-12.1.2-1.el8.x86_64 8/12
6 N9 J3 R. T+ k2 x& x 运行脚本: MariaDB-server-12.1.2-1.el8.x86_64 8/12 o6 x2 ^! i& D
$ _. _3 k; ]/ P' O0 n
$ ]" n$ N5 G6 A. `. }5 i7 B
Two all-privilege accounts were created.
$ [' }) d+ n3 Z0 DOne is root@localhost, it has no password, but you need to7 w& J' G; h+ e& v
be system 'root' user to connect. Use, for example, sudo mariadb6 H* r0 U+ ]1 s7 Y
The second is mysql@localhost, it has no password either, but% m' H4 K+ K3 T
you need to be the system 'mysql' user to connect.
r3 N4 |4 H/ B3 i/ n/ ^3 uAfter connecting you can set the password, if you would need to be" {* r" ?4 v M# Z+ k- h
able to connect as any of these users with a password and without sudo* n* p0 j4 N7 |" L2 T+ `
" i' B+ P! |8 e2 ]& u) \* Q
See the MariaDB Knowledgebase at https://mariadb.com/kb& y' l6 X! I4 c% k, s+ \. o
W6 y% z, V/ @2 R/ ]+ \5 O) d
Please report any problems at https://mariadb.org/jira
* e! c$ f& V7 k ]4 t. U, r! l0 P" W
The latest information about MariaDB is available at https://mariadb.org/.
, ]( d& ?% [ o- Z) U$ w0 r* c- W& }$ R0 r
Consider joining MariaDB's strong and vibrant community:" T: W3 i1 S! E7 c! G5 c' G3 v" W
https://mariadb.org/get-involved/
$ Z: x; t& O& c, O5 r0 ~# M! a$ \6 f+ C# r
/ Q @4 {$ _ n: M3 u" Y2 y+ m% i 安装 : MariaDB-devel-12.1.2-1.el8.x86_64 9/12 , i1 P. ?# q3 _6 g7 {+ d4 u" h
废弃 : mariadb-connector-c-devel-3.1.11-2.el8_3.x86_64 10/12
) ?( |4 M) G' g; ^: G 废弃 : mariadb-connector-c-3.1.11-2.el8_3.x86_64 11/12 8 h9 _3 ?1 I4 w2 D0 z9 o# e
废弃 : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 12/12 ) P+ y& N) o/ S2 [9 D$ s* e
运行脚本: MariaDB-server-12.1.2-1.el8.x86_64 12/12
" r, T% L/ |0 l2 f& [' Y% G! p 运行脚本: mariadb-connector-c-config-3.1.11-2.el8_3.noarch 12/12
! o9 R+ L- g& T' S9 d4 k3 |- O 验证 : socat-1.7.4.1-1.el8.x86_64 1/12 6 |) [& d; L( T5 l
验证 : MariaDB-client-12.1.2-1.el8.x86_64 2/12
) y" d' Q4 K+ Z! M h2 h 验证 : MariaDB-client-compat-12.1.2-1.el8.noarch 3/12 ) v: b$ I* l/ Y, C
验证 : MariaDB-common-12.1.2-1.el8.x86_64 4/12 8 y; n, L3 _' x
验证 : MariaDB-devel-12.1.2-1.el8.x86_64 5/12
~$ F) x$ q, k0 U2 ]) p 验证 : mariadb-connector-c-devel-3.1.11-2.el8_3.x86_64 6/12 , s, H. b/ j5 F) G( M- l n
验证 : MariaDB-server-12.1.2-1.el8.x86_64 7/12
6 H l/ Y* h9 a9 b! C6 H$ ]* [! y& Q 验证 : MariaDB-server-compat-12.1.2-1.el8.noarch 8/12
6 y- m0 |: K; G- h% O! ?" u 验证 : MariaDB-shared-12.1.2-1.el8.x86_64 9/12 3 u, Z- S) C- n& O; Y$ A8 k
验证 : mariadb-connector-c-3.1.11-2.el8_3.x86_64 10/12
8 s( C- q& A0 U! D% @ 验证 : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 11/12 8 f2 f$ n4 C6 q2 r
验证 : galera-4-26.4.24-1.el8.x86_64 12/12 3 h2 }8 u8 X- k& `
1 Y/ R# c6 r3 s) b( E已安装:
$ `& o z. ^* o% a% [ 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
3 b- M) p& j. |$ a5 [4 R2 b 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
' h: P: @- W6 B0 T% Q" |& X socat-1.7.4.1-1.el8.x86_64
: ?+ {! Z+ z |0 C7 \* h0 M& M5 j, R5 m E9 S/ U* J3 J( [
完毕!1 m, ]' ^% K; F9 ?; n6 l4 p. o
+ }5 w* r9 S8 n, c; {
+ B! O, R6 ]- a: v |
|