[root@database-rhel79 ~]# wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
--2021-04-29 18:27:02-- https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
Resolving downloads.mariadb.com (downloads.mariadb.com)... 104.20.68.208, 104.20.67.208, 172.67.32.229, ...
Connecting to downloads.mariadb.com (downloads.mariadb.com)|104.20.68.208|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24251 (24K) [application/octet-stream]
Saving to: ‘mariadb_repo_setup’
100%[====================================================================================================================================================>] 24,251 --.-K/s in 0.005s
2021-04-29 18:27:08 (4.58 MB/s) - ‘mariadb_repo_setup’ saved [24251/24251]
[root@database-rhel79 ~]# chmod +x mariadb_repo_setup
[root@database-rhel79 ~]# ./mariadb_repo_setup
[info] Repository file successfully written to /etc/yum.repos.d/mariadb.repo
[info] Adding trusted package signing keys...
[info] Successfully added trusted package signing keys
[root@database-rhel79 ~]# yum install MariaDB-server
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository 'InstallMedia': Error parsing config: Error parsing "baseurl = 'file:///run/media/root/RHEL-7.9 Server.x86_64/'": URL must be http, ftp, file or https not ""
mariadb-main | 2.9 kB 00:00:00
mariadb-maxscale | 2.4 kB 00:00:00
mariadb-tools | 2.9 kB 00:00:00
(1/3): mariadb-tools/primary_db | 15 kB 00:00:06
(2/3): mariadb-main/primary_db | 71 kB 00:00:06
(3/3): mariadb-maxscale/primary_db | 7.0 kB 00:00:12
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-server.x86_64 0:10.5.9-1.el7.centos will be installed
--> Processing Dependency: MariaDB-client for package: MariaDB-server-10.5.9-1.el7.centos.x86_64
--> Processing Dependency: galera-4 for package: MariaDB-server-10.5.9-1.el7.centos.x86_64
--> Processing Dependency: MariaDB-common for package: MariaDB-server-10.5.9-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.5.9-1.el7.centos will be installed
---> Package MariaDB-common.x86_64 0:10.5.9-1.el7.centos will be installed
--> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.5.9-1.el7.centos.x86_64
---> Package galera-4.x86_64 0:26.4.7-1.el7.centos will be installed
--> Processing Dependency: socat for package: galera-4-26.4.7-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-compat.x86_64 0:10.5.9-1.el7.centos will be obsoleting
---> Package mariadb-libs.x86_64 1:5.5.68-1.el7 will be obsoleted
---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================
Installing:
MariaDB-compat x86_64 10.5.9-1.el7.centos mariadb-main 2.2 M
replacing mariadb-libs.x86_64 1:5.5.68-1.el7
MariaDB-server x86_64 10.5.9-1.el7.centos mariadb-main 26 M
Installing for dependencies:
MariaDB-client x86_64 10.5.9-1.el7.centos mariadb-main 13 M
MariaDB-common x86_64 10.5.9-1.el7.centos mariadb-main 81 k
galera-4 x86_64 26.4.7-1.el7.centos mariadb-main 9.1 M
socat x86_64 1.7.3.2-2.el7 rhel-7-server-rpms 290 k
Transaction Summary
==============================================================================================================================================================================================
Install 2 Packages (+4 Dependent packages)
Total download size: 51 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): MariaDB-common-10.5.9-1.el7.centos.x86_64.rpm | 81 kB 00:00:07
(2/6): MariaDB-compat-10.5.9-1.el7.centos.x86_64.rpm | 2.2 MB 00:00:03
(3/6): MariaDB-client-10.5.9-1.el7.centos.x86_64.rpm | 13 MB 00:00:11
(4/6): galera-4-26.4.7-1.el7.centos.x86_64.rpm | 9.1 MB 00:00:05
(5/6): socat-1.7.3.2-2.el7.x86_64.rpm | 290 kB 00:00:06
(6/6): MariaDB-server-10.5.9-1.el7.centos.x86_64.rpm | 26 MB 00:00:10
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.4 MB/s | 51 MB 00:00:20
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : MariaDB-common-10.5.9-1.el7.centos.x86_64 1/7
Installing : MariaDB-compat-10.5.9-1.el7.centos.x86_64 2/7
Installing : MariaDB-client-10.5.9-1.el7.centos.x86_64 3/7
Installing : socat-1.7.3.2-2.el7.x86_64 4/7
Installing : galera-4-26.4.7-1.el7.centos.x86_64 5/7
Installing : MariaDB-server-10.5.9-1.el7.centos.x86_64 6/7
Two all-privilege accounts were created.
One is root@localhost, it has no password, but you need to
be system 'root' user to connect. Use, for example, sudo mysql
The second is mysql@localhost, it has no password either, but
you need to be the system 'mysql' user to connect.
After connecting you can set the password, if you would need to be
able to connect as any of these users with a password and without sudo
See the MariaDB Knowledgebase at https://mariadb.com/kb or the
MySQL manual for more instructions.
Please report any problems at https://mariadb.org/jira
The latest information about MariaDB is available at https://mariadb.org/.
You can find additional information about the MySQL part at:
https://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
Erasing : 1:mariadb-libs-5.5.68-1.el7.x86_64 7/7
Verifying : MariaDB-compat-10.5.9-1.el7.centos.x86_64 1/7
Verifying : MariaDB-client-10.5.9-1.el7.centos.x86_64 2/7
Verifying : socat-1.7.3.2-2.el7.x86_64 3/7
Verifying : galera-4-26.4.7-1.el7.centos.x86_64 4/7
Verifying : MariaDB-common-10.5.9-1.el7.centos.x86_64 5/7
Verifying : MariaDB-server-10.5.9-1.el7.centos.x86_64 6/7
Verifying : 1:mariadb-libs-5.5.68-1.el7.x86_64 7/7
Installed:
MariaDB-compat.x86_64 0:10.5.9-1.el7.centos MariaDB-server.x86_64 0:10.5.9-1.el7.centos
Dependency Installed:
MariaDB-client.x86_64 0:10.5.9-1.el7.centos MariaDB-common.x86_64 0:10.5.9-1.el7.centos galera-4.x86_64 0:26.4.7-1.el7.centos socat.x86_64 0:1.7.3.2-2.el7
Replaced:
mariadb-libs.x86_64 1:5.5.68-1.el7
Complete!
[root@database-rhel79 ~]# systemctl start mariadb.service
[root@database-rhel79 ~]# systemctl status mariadb.service
● mariadb.service - MariaDB 10.5.9 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running) since Thu 2021-04-29 18:31:39 +08; 6s ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 9296 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 9269 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 9265 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Main PID: 9280 (mariadbd)
Status: "Taking your SQL requests now..."
Tasks: 14
CGroup: /system.slice/mariadb.service
└─9280 /usr/sbin/mariadbd
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] InnoDB: 10.5.9 started; log sequence number 45106; transaction id 20
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] Plugin 'FEEDBACK' is disabled.
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] InnoDB: Buffer pool(s) load completed at 210429 18:31:39
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] Server socket created on IP: '::'.
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] Reading of all Master_info entries succeeded
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] Added new Master_info '' to hash table
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: 2021-04-29 18:31:39 0 [Note] /usr/sbin/mariadbd: ready for connections.
Apr 29 18:31:39 database-rhel79.localdomain mariadbd[9280]: Version: '10.5.9-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
Apr 29 18:31:39 database-rhel79.localdomain systemd[1]: Started MariaDB 10.5.9 database server.