Sunday, October 27, 2024
Install Mariadb 10.6 on RHEL 9
Use this for reference: https://mariadb.com/docs/server/service-management/upgrades/community-server/release-series-cs10-6/
[root@sbidemo home]# sudo yum install curl
Updating Subscription Management repositories.
Last metadata expiration check: 0:23:50 ago on Sun 27 Oct 2024 10:12:38 PM.
Package curl-7.76.1-29.el9_4.1.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@sbidemo home]# curl -LsSO https://r.mariadb.com/downloads/mariadb_repo_setup
[root@sbidemo home]# chmod +x mariadb_repo_setup
[root@sbidemo home]# sudo ./mariadb_repo_setup \
--mariadb-server-version="mariadb-10.6"
# [info] Checking for script prerequisites.
# [warning] Found existing file at /etc/yum.repos.d/mariadb.repo. Moving to /etc/yum.repos.d/mariadb.repo.old_1
# [info] MariaDB Server version 10.6 is valid
# [info] Repository file successfully written to /etc/yum.repos.d/mariadb.repo
# [info] Adding trusted package signing keys...
/etc/pki/rpm-gpg /home
/home
# [info] Successfully added trusted package signing keys
# [info] Cleaning package cache...
Updating Subscription Management repositories.
39 files removed
[root@sbidemo home]# sudo apt install mariadb-server mariadb-backup
sudo: apt: command not found
[root@sbidemo home]# sudo yum install MariaDB-server MariaDB-backup
Updating Subscription Management repositories.
^[MariaDB Server [=== ] --- B/s | 0 B --:-- ETMariaDB Server 103 kB/s | 597 kB 00:05
MariaDB MaxScale 989 B/s | 6.9 kB 00:07
MariaDB Tools 1.3 kB/s | 4.3 kB 00:03
packages-microsoft-com-mssql-server-2019 1.5 MB/s | 5.5 MB 00:03
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 5.2 MB/s | 42 MB 00:08
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 4.9 MB/s | 33 MB 00:06
Dependencies resolved.
==========================================================================================================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================================================================================================
Installing:
MariaDB-backup x86_64 10.6.19-1.el9 mariadb-main 6.9 M
MariaDB-server x86_64 10.6.19-1.el9 mariadb-main 18 M
Installing dependencies:
MariaDB-client x86_64 10.6.19-1.el9 mariadb-main 8.5 M
boost-program-options x86_64 1.75.0-8.el9 rhel-9-for-x86_64-appstream-rpms 108 k
galera-4 x86_64 26.4.19-1.el9 mariadb-main 1.4 M
perl-Sys-Hostname x86_64 1.23-481.el9 rhel-9-for-x86_64-appstream-rpms 19 k
socat x86_64 1.7.4.1-5.el9_4.2 rhel-9-for-x86_64-appstream-rpms 308 k
Transaction Summary
==========================================================================================================================================================================================================
Install 7 Packages
Total download size: 35 M
Installed size: 232 M
Is this ok [y/N]: y
Is this ok [y/N]: y
Downloading Packages:
(1/7): MariaDB-client-10.6.19-1.el9.x86_64.rpm 1.7 MB/s | 8.5 MB 00:05
(2/7): MariaDB-backup-10.6.19-1.el9.x86_64.rpm 1.1 MB/s | 6.9 MB 00:06
(3/7): MariaDB-server-10.6.19-1.el9.x86_64.rpm 2.1 MB/s | 18 MB 00:08
(4/7): boost-program-options-1.75.0-8.el9.x86_64.rpm 44 kB/s | 108 kB 00:02
(5/7): galera-4-26.4.19-1.el9.x86_64.rpm 351 kB/s | 1.4 MB 00:03
(6/7): perl-Sys-Hostname-1.23-481.el9.x86_64.rpm 22 kB/s | 19 kB 00:00
(7/7): socat-1.7.4.1-5.el9_4.2.x86_64.rpm 251 kB/s | 308 kB 00:01
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 3.5 MB/s | 35 MB 00:10
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : socat-1.7.4.1-5.el9_4.2.x86_64 1/7
Installing : perl-Sys-Hostname-1.23-481.el9.x86_64 2/7
Installing : MariaDB-client-10.6.19-1.el9.x86_64 3/7
Installing : boost-program-options-1.75.0-8.el9.x86_64 4/7
Running scriptlet: galera-4-26.4.19-1.el9.x86_64 5/7
Installing : galera-4-26.4.19-1.el9.x86_64 5/7
Running scriptlet: galera-4-26.4.19-1.el9.x86_64 5/7
Running scriptlet: MariaDB-server-10.6.19-1.el9.x86_64 6/7
usermod: no changes
Installing : MariaDB-server-10.6.19-1.el9.x86_64 6/7
Running scriptlet: MariaDB-server-10.6.19-1.el9.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
Please report any problems at https://mariadb.org/jira
The latest information about MariaDB is available at https://mariadb.org/.
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
Installing : MariaDB-backup-10.6.19-1.el9.x86_64 7/7
Running scriptlet: MariaDB-server-10.6.19-1.el9.x86_64 7/7
Running scriptlet: MariaDB-backup-10.6.19-1.el9.x86_64 7/7
Verifying : MariaDB-backup-10.6.19-1.el9.x86_64 1/7
Verifying : MariaDB-client-10.6.19-1.el9.x86_64 2/7
Verifying : MariaDB-server-10.6.19-1.el9.x86_64 3/7
Verifying : galera-4-26.4.19-1.el9.x86_64 4/7
Verifying : boost-program-options-1.75.0-8.el9.x86_64 5/7
Verifying : perl-Sys-Hostname-1.23-481.el9.x86_64 6/7
Verifying : socat-1.7.4.1-5.el9_4.2.x86_64 7/7
Installed products updated.
Installed:
MariaDB-backup-10.6.19-1.el9.x86_64 MariaDB-client-10.6.19-1.el9.x86_64 MariaDB-server-10.6.19-1.el9.x86_64 boost-program-options-1.75.0-8.el9.x86_64 galera-4-26.4.19-1.el9.x86_64
perl-Sys-Hostname-1.23-481.el9.x86_64 socat-1.7.4.1-5.el9_4.2.x86_64
Complete!
Subscribe to:
Post Comments (Atom)
Install client as follows:
ReplyDeletehttps://db2-vignettes.blogspot.com/2021/11/setting-up-mariadb-ocbc-on-redhat.html