Installing MySQL on Linux Using RPM: A Step-by-Step Guide
MySQL is one of the most popular relational database management systems, widely used for web applications and enterprise solutions. If you’re running a Linux system, installing MySQL using RPM (Red Hat Package Manager) is an efficient way to get MySQL up and running. This guide will walk you through the step-by-step process of installing MySQL on RHEL/OEL using RPM packages.
Step 1: Download the MySQL RPM Bundle and Transfer to Your Linux System
You can download the MySQL Enterprise RPM Bundle from the official MySQL website:
MySQL Enterprise Edition Download
Select the appropriate Linux RPM Package version for your system.
downloaded the file on a local machine, transfer it to your Linux server using scp or any file transfer method
Example
scp mysql-enterprise-9.2.0_el9_x86_64_bundle.tar user@your_linux_server_IP:/destination
Step 2: Extract the MySQL RPM Bundle
navigate to the directory & Extract the downloaded bundle:
[root@RHEL-OEL23 MYSQL]# tar xvf mysql-enterprise-9.2.0_el9_x86_64_bundle.tar
mysql-shell-commercial-9.2.0-1.1.el9.x86_64.rpm
mysql-connector-python3-commercial-9.2.0-1.1.el9.x86_64.rpm
mysqlx-connector-python3-commercial-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-backup-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-client-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-client-plugins-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-common-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-icu-data-files-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-libs-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-libs-compat-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-server-9.2.0-1.1.el9.x86_64.rpm
mysql-commercial-test-9.2.0-1.1.el9.x86_64.rpm
mysql-router-commercial-9.2.0-1.1.el9.x86_64.rpm
mysql-connector-j-commercial-9.2.0-1.1.el9.noarch.rpm
mysql-connector-c++-commercial-9.2.0-1.1.el9.x86_64.rpm
mysql-connector-c++-commercial-compat-9.2.0-1.1.el9.x86_64.rpm
mysql-connector-c++-commercial-jdbc-9.2.0-1.1.el9.x86_64.rpm
mysql-connector-odbc-commercial-9.2.0-1.1.el9.x86_64.rpm
mysql-connector-odbc-commercial-setup-9.2.0-1.1.el9.x86_64.rpm
repodata/
repodata/3486e98ea9b0880fc1e2945a7d6dbbef1b5b0b67-primary.xml.gz
repodata/0afee0feff92114e09fa90b6c40e267f01634fef-filelists.xml.gz
repodata/d9a39ebfcf7f853fa0737387be3c49ce5f860a32-other.xml.gz
repodata/7123505514103f372db9e8e18cb189e4fd667748-primary.sqlite.bz2
repodata/c585837b2f467942d8c8e3817f35e26a2059be12-filelists.sqlite.bz2
repodata/41e2866e9449a84476ebecf231e3b9fa4d739809-other.sqlite.bz2
repodata/repomd.xml
README.txt
Step 3: Install MySQL Using DNF
To install all the extracted RPM packages at once, run:
You will be prompted to confirm the installation. Type y
and press Enter.
[root@RHEL-OEL23 MYSQL]# dnf localinstall *.rpm
Last metadata expiration check: 0:05:15 ago on Thu Feb 27 01:45:27 2025.
Dependencies resolved.
=============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
mysql-commercial-backup x86_64 9.2.0-1.1.el9 @commandline 3.7 M
mysql-commercial-client x86_64 9.2.0-1.1.el9 @commandline 3.4 M
mysql-commercial-client-plugins x86_64 9.2.0-1.1.el9 @commandline 2.3 M
mysql-commercial-common x86_64 9.2.0-1.1.el9 @commandline 615 k
mysql-commercial-icu-data-files x86_64 9.2.0-1.1.el9 @commandline 2.3 M
mysql-commercial-libs x86_64 9.2.0-1.1.el9 @commandline 1.5 M
mysql-commercial-libs-compat x86_64 9.2.0-1.1.el9 @commandline 1.5 M
mysql-commercial-server x86_64 9.2.0-1.1.el9 @commandline 105 M
mysql-commercial-test x86_64 9.2.0-1.1.el9 @commandline 387 M
mysql-connector-c++-commercial x86_64 9.2.0-1.1.el9 @commandline 1.2 M
mysql-connector-c++-commercial-compat x86_64 9.2.0-1.1.el9 @commandline 1.7 M
mysql-connector-c++-commercial-jdbc x86_64 9.2.0-1.1.el9 @commandline 2.2 M
mysql-connector-j-commercial noarch 1:9.2.0-1.1.el9 @commandline 2.4 M
mysql-connector-odbc-commercial x86_64 9.2.0-1.1.el9 @commandline 6.3 M
mysql-connector-odbc-commercial-setup x86_64 9.2.0-1.1.el9 @commandline 3.4 M
mysql-connector-python3-commercial x86_64 9.2.0-1.1.el9 @commandline 2.5 M
mysql-router-commercial x86_64 9.2.0-1.1.el9 @commandline 6.5 M
mysql-shell-commercial x86_64 9.2.0-1.1.el9 @commandline 91 M
mysqlx-connector-python3-commercial x86_64 9.2.0-1.1.el9 @commandline 1.2 M
Upgrading:
openssl x86_64 1:3.2.2-6.el9_5 baseos 1.4 M
openssl-libs x86_64 1:3.2.2-6.el9_5 baseos 2.1 M
Installing dependencies:
libtool-ltdl x86_64 2.4.6-46.el9 InstallMedia-AppStream 37 k
openssl-fips-provider x86_64 3.0.7-6.el9_5 baseos 9.4 k
openssl-fips-provider-so x86_64 3.0.7-6.el9_5 baseos 577 k
perl-AutoLoader noarch 5.74-481.el9 InstallMedia-AppStream 21 k
perl-B x86_64 1.80-481.el9 InstallMedia-AppStream 184 k
perl-Carp noarch 1.50-460.el9 InstallMedia-AppStream 31 k
perl-Class-Struct noarch 0.66-481.el9 InstallMedia-AppStream 22 k
perl-Data-Dumper x86_64 2.174-462.el9 InstallMedia-AppStream 59 k
perl-Digest noarch 1.19-4.el9 InstallMedia-AppStream 29 k
perl-Digest-MD5 x86_64 2.58-4.el9 InstallMedia-AppStream 39 k
perl-Encode x86_64 4:3.08-462.el9 InstallMedia-AppStream 1.7 M
perl-English noarch 1.11-481.el9 InstallMedia-AppStream 14 k
perl-Errno x86_64 1.30-481.el9 InstallMedia-AppStream 15 k
perl-Exporter noarch 5.74-461.el9 InstallMedia-AppStream 34 k
perl-Fcntl x86_64 1.13-481.el9 InstallMedia-AppStream 22 k
perl-File-Basename noarch 2.85-481.el9 InstallMedia-AppStream 17 k
perl-File-Copy noarch 2.34-481.el9 InstallMedia-AppStream 20 k
perl-File-Find noarch 1.37-481.el9 InstallMedia-AppStream 26 k
perl-File-Path noarch 2.18-4.el9 InstallMedia-AppStream 38 k
perl-File-Temp noarch 1:0.231.100-4.el9 InstallMedia-AppStream 63 k
perl-File-stat noarch 1.09-481.el9 InstallMedia-AppStream 17 k
perl-FileHandle noarch 2.03-481.el9 InstallMedia-AppStream 16 k
perl-Getopt-Long noarch 1:2.52-4.el9 InstallMedia-AppStream 64 k
perl-Getopt-Std noarch 1.12-481.el9 InstallMedia-AppStream 16 k
perl-HTTP-Tiny noarch 0.076-462.el9 InstallMedia-AppStream 57 k
perl-IO x86_64 1.43-481.el9 InstallMedia-AppStream 92 k
perl-IO-Socket-IP noarch 0.41-5.el9 InstallMedia-AppStream 45 k
perl-IO-Socket-SSL noarch 2.073-2.el9 InstallMedia-AppStream 221 k
perl-IPC-Open3 noarch 1.21-481.el9 InstallMedia-AppStream 24 k
perl-JSON noarch 4.03-5.el9 InstallMedia-AppStream 99 k
perl-MIME-Base64 x86_64 3.16-4.el9 InstallMedia-AppStream 34 k
perl-Math-BigInt noarch 1:1.9998.18-460.el9 InstallMedia-AppStream 194 k
perl-Math-Complex noarch 1.59-481.el9 InstallMedia-AppStream 47 k
perl-Memoize noarch 1.03-481.el9 InstallMedia-AppStream 60 k
perl-Mozilla-CA noarch 20200520-6.el9 InstallMedia-AppStream 14 k
perl-NDBM_File x86_64 1.15-481.el9 InstallMedia-AppStream 23 k
perl-Net-SSLeay x86_64 1.94-1.el9 InstallMedia-AppStream 418 k
perl-POSIX x86_64 1.94-481.el9 InstallMedia-AppStream 98 k
perl-PathTools x86_64 3.78-461.el9 InstallMedia-AppStream 92 k
perl-Pod-Escapes noarch 1:1.07-460.el9 InstallMedia-AppStream 22 k
perl-Pod-Perldoc noarch 3.28.01-461.el9 InstallMedia-AppStream 92 k
perl-Pod-Simple noarch 1:3.42-4.el9 InstallMedia-AppStream 229 k
perl-Pod-Usage noarch 4:2.01-4.el9 InstallMedia-AppStream 43 k
perl-Scalar-List-Utils x86_64 4:1.56-462.el9 InstallMedia-AppStream 75 k
perl-SelectSaver noarch 1.02-481.el9 InstallMedia-AppStream 12 k
perl-Socket x86_64 4:2.031-4.el9 InstallMedia-AppStream 58 k
perl-Storable x86_64 1:3.21-460.el9 InstallMedia-AppStream 98 k
perl-Symbol noarch 1.08-481.el9 InstallMedia-AppStream 14 k
perl-Sys-Hostname x86_64 1.23-481.el9 InstallMedia-AppStream 19 k
perl-Term-ANSIColor noarch 5.01-461.el9 InstallMedia-AppStream 51 k
perl-Term-Cap noarch 1.17-460.el9 InstallMedia-AppStream 24 k
perl-Text-ParseWords noarch 3.30-460.el9 InstallMedia-AppStream 18 k
perl-Text-Tabs+Wrap noarch 2013.0523-460.el9 InstallMedia-AppStream 25 k
perl-Time noarch 1.03-481.el9 InstallMedia-AppStream 20 k
perl-Time-HiRes x86_64 4:1.9764-462.el9 InstallMedia-AppStream 61 k
perl-Time-Local noarch 2:1.300-7.el9 InstallMedia-AppStream 37 k
perl-URI noarch 5.09-3.el9 InstallMedia-AppStream 125 k
perl-base noarch 2.27-481.el9 InstallMedia-AppStream 16 k
perl-constant noarch 1.33-461.el9 InstallMedia-AppStream 25 k
perl-if noarch 0.60.800-481.el9 InstallMedia-AppStream 14 k
perl-interpreter x86_64 4:5.32.1-481.el9 InstallMedia-AppStream 73 k
perl-libnet noarch 3.13-4.el9 InstallMedia-AppStream 134 k
perl-libs x86_64 4:5.32.1-481.el9 InstallMedia-AppStream 2.2 M
perl-mro x86_64 1.23-481.el9 InstallMedia-AppStream 29 k
perl-overload noarch 1.31-481.el9 InstallMedia-AppStream 46 k
perl-overloading noarch 0.02-481.el9 InstallMedia-AppStream 13 k
perl-parent noarch 1:0.238-460.el9 InstallMedia-AppStream 16 k
perl-podlators noarch 1:4.14-460.el9 InstallMedia-AppStream 118 k
perl-subs noarch 1.03-481.el9 InstallMedia-AppStream 12 k
perl-vars noarch 1.05-481.el9 InstallMedia-AppStream 13 k
unixODBC x86_64 2.3.9-4.el9 InstallMedia-AppStream 495 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 90 Packages
Upgrade 2 Packages
Total size: 638 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : mysql-commercial-common-9.2.0-1.1.el9.x86_64 1/94
Installing : mysql-commercial-icu-data-files-9.2.0-1.1.el9.x86_64 2/94
Installing : libtool-ltdl-2.4.6-46.el9.x86_64 3/94
Installing : unixODBC-2.3.9-4.el9.x86_64 4/94
Installing : openssl-fips-provider-so-3.0.7-6.el9_5.x86_64 5/94
Installing : openssl-fips-provider-3.0.7-6.el9_5.x86_64 6/94
Upgrading : openssl-libs-1:3.2.2-6.el9_5.x86_64 7/94
Installing : perl-Digest-1.19-4.el9.noarch 8/94
Installing : perl-Digest-MD5-2.58-4.el9.x86_64 9/94
Installing : perl-B-1.80-481.el9.x86_64 10/94
Installing : perl-FileHandle-2.03-481.el9.noarch 11/94
Installing : perl-Data-Dumper-2.174-462.el9.x86_64 12/94
Installing : perl-libnet-3.13-4.el9.noarch 13/94
Installing : perl-AutoLoader-5.74-481.el9.noarch 14/94
Installing : perl-base-2.27-481.el9.noarch 15/94
Installing : perl-URI-5.09-3.el9.noarch 16/94
Installing : perl-Mozilla-CA-20200520-6.el9.noarch 17/94
Installing : perl-if-0.60.800-481.el9.noarch 18/94
Installing : perl-IO-Socket-IP-0.41-5.el9.noarch 19/94
Installing : perl-Time-Local-2:1.300-7.el9.noarch 20/94
Installing : perl-File-Path-2.18-4.el9.noarch 21/94
Installing : perl-Pod-Escapes-1:1.07-460.el9.noarch 22/94
Installing : perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch 23/94
Installing : perl-IO-Socket-SSL-2.073-2.el9.noarch 24/94
Installing : perl-Net-SSLeay-1.94-1.el9.x86_64 25/94
Installing : perl-Class-Struct-0.66-481.el9.noarch 26/94
Installing : perl-POSIX-1.94-481.el9.x86_64 27/94
Installing : perl-Term-ANSIColor-5.01-461.el9.noarch 28/94
Installing : perl-IPC-Open3-1.21-481.el9.noarch 29/94
Installing : perl-subs-1.03-481.el9.noarch 30/94
Installing : perl-File-Temp-1:0.231.100-4.el9.noarch 31/94
Installing : perl-Term-Cap-1.17-460.el9.noarch 32/94
Installing : perl-Pod-Simple-1:3.42-4.el9.noarch 33/94
Installing : perl-HTTP-Tiny-0.076-462.el9.noarch 34/94
Installing : perl-Socket-4:2.031-4.el9.x86_64 35/94
Installing : perl-SelectSaver-1.02-481.el9.noarch 36/94
Installing : perl-Symbol-1.08-481.el9.noarch 37/94
Installing : perl-File-stat-1.09-481.el9.noarch 38/94
Installing : perl-podlators-1:4.14-460.el9.noarch 39/94
Installing : perl-Pod-Perldoc-3.28.01-461.el9.noarch 40/94
Installing : perl-Fcntl-1.13-481.el9.x86_64 41/94
Installing : perl-Text-ParseWords-3.30-460.el9.noarch 42/94
Installing : perl-mro-1.23-481.el9.x86_64 43/94
Installing : perl-IO-1.43-481.el9.x86_64 44/94
Installing : perl-overloading-0.02-481.el9.noarch 45/94
Installing : perl-Pod-Usage-4:2.01-4.el9.noarch 46/94
Installing : perl-Errno-1.30-481.el9.x86_64 47/94
Installing : perl-File-Basename-2.85-481.el9.noarch 48/94
Installing : perl-Getopt-Std-1.12-481.el9.noarch 49/94
Installing : perl-MIME-Base64-3.16-4.el9.x86_64 50/94
Installing : perl-Scalar-List-Utils-4:1.56-462.el9.x86_64 51/94
Installing : perl-constant-1.33-461.el9.noarch 52/94
Installing : perl-Storable-1:3.21-460.el9.x86_64 53/94
Installing : perl-overload-1.31-481.el9.noarch 54/94
Installing : perl-parent-1:0.238-460.el9.noarch 55/94
Installing : perl-vars-1.05-481.el9.noarch 56/94
Installing : perl-Getopt-Long-1:2.52-4.el9.noarch 57/94
Installing : perl-Carp-1.50-460.el9.noarch 58/94
Installing : perl-Exporter-5.74-461.el9.noarch 59/94
Installing : perl-NDBM_File-1.15-481.el9.x86_64 60/94
Installing : perl-PathTools-3.78-461.el9.x86_64 61/94
Installing : perl-Encode-4:3.08-462.el9.x86_64 62/94
Installing : perl-libs-4:5.32.1-481.el9.x86_64 63/94
Installing : perl-interpreter-4:5.32.1-481.el9.x86_64 64/94
Installing : mysql-commercial-client-plugins-9.2.0-1.1.el9.x86_64 65/94
Installing : mysql-commercial-libs-9.2.0-1.1.el9.x86_64 66/94
Running scriptlet: mysql-commercial-libs-9.2.0-1.1.el9.x86_64 66/94
Installing : mysql-commercial-client-9.2.0-1.1.el9.x86_64 67/94
Running scriptlet: mysql-commercial-server-9.2.0-1.1.el9.x86_64 68/94
Installing : mysql-commercial-server-9.2.0-1.1.el9.x86_64 68/94
Running scriptlet: mysql-commercial-server-9.2.0-1.1.el9.x86_64 68/94
Installing : perl-English-1.11-481.el9.noarch 69/94
Installing : perl-File-Copy-2.34-481.el9.noarch 70/94
Installing : perl-File-Find-1.37-481.el9.noarch 71/94
Installing : perl-Math-Complex-1.59-481.el9.noarch 72/94
Installing : perl-Math-BigInt-1:1.9998.18-460.el9.noarch 73/94
Installing : perl-JSON-4.03-5.el9.noarch 74/94
Installing : perl-Memoize-1.03-481.el9.noarch 75/94
Installing : perl-Sys-Hostname-1.23-481.el9.x86_64 76/94
Installing : perl-Time-1.03-481.el9.noarch 77/94
Installing : perl-Time-HiRes-4:1.9764-462.el9.x86_64 78/94
Installing : mysql-connector-odbc-commercial-9.2.0-1.1.el9.x86_64 79/94
Running scriptlet: mysql-connector-odbc-commercial-9.2.0-1.1.el9.x86_64 79/94
[ERROR] SQLInstaller error 6: Unable to find component name
[ERROR] SQLInstaller error 6: Unable to find component name
warning: %post(mysql-connector-odbc-commercial-9.2.0-1.1.el9.x86_64) scriptlet failed, exit status 1
Error in POSTIN scriptlet in rpm package mysql-connector-odbc-commercial
Installing : mysql-connector-odbc-commercial-setup-9.2.0-1.1.el9.x86_64 80/94
Running scriptlet: mysql-connector-odbc-commercial-setup-9.2.0-1.1.el9.x86_64 80/94
[ERROR] SQLInstaller error 6: Unable to find component name
[ERROR] SQLInstaller error 6: Unable to find component name
[ERROR] SQLInstaller error 6: Unable to find component name
[ERROR] SQLInstaller error 6: Unable to find component name
warning: %post(mysql-connector-odbc-commercial-setup-9.2.0-1.1.el9.x86_64) scriptlet failed, exit status 1
Error in POSTIN scriptlet in rpm package mysql-connector-odbc-commercial-setup
Installing : mysql-commercial-test-9.2.0-1.1.el9.x86_64 81/94
Installing : mysql-commercial-libs-compat-9.2.0-1.1.el9.x86_64 82/94
Running scriptlet: mysql-commercial-libs-compat-9.2.0-1.1.el9.x86_64 82/94
Installing : mysql-commercial-backup-9.2.0-1.1.el9.x86_64 83/94
Installing : mysql-connector-c++-commercial-9.2.0-1.1.el9.x86_64 84/94
Running scriptlet: mysql-connector-c++-commercial-9.2.0-1.1.el9.x86_64 84/94
Installing : mysql-connector-c++-commercial-compat-9.2.0-1.1.el9.x86_64 85/94
Installing : mysql-connector-c++-commercial-jdbc-9.2.0-1.1.el9.x86_64 86/94
Running scriptlet: mysql-connector-c++-commercial-jdbc-9.2.0-1.1.el9.x86_64 86/94
Installing : mysql-connector-python3-commercial-9.2.0-1.1.el9.x86_64 87/94
Running scriptlet: mysql-router-commercial-9.2.0-1.1.el9.x86_64 88/94
Installing : mysql-router-commercial-9.2.0-1.1.el9.x86_64 88/94
Running scriptlet: mysql-router-commercial-9.2.0-1.1.el9.x86_64 88/94
Installing : mysql-shell-commercial-9.2.0-1.1.el9.x86_64 89/94
Upgrading : openssl-1:3.2.2-6.el9_5.x86_64 90/94
Installing : mysqlx-connector-python3-commercial-9.2.0-1.1.el9.x86_64 91/94
Installing : mysql-connector-j-commercial-1:9.2.0-1.1.el9.noarch 92/94
Cleanup : openssl-1:3.0.7-17.el9_2.x86_64 93/94
Cleanup : openssl-libs-1:3.0.7-17.el9_2.x86_64 94/94
Running scriptlet: openssl-libs-1:3.0.7-17.el9_2.x86_64 94/94
Verifying : openssl-fips-provider-3.0.7-6.el9_5.x86_64 1/94
Verifying : openssl-fips-provider-so-3.0.7-6.el9_5.x86_64 2/94
Verifying : libtool-ltdl-2.4.6-46.el9.x86_64 3/94
Verifying : perl-AutoLoader-5.74-481.el9.noarch 4/94
Verifying : perl-B-1.80-481.el9.x86_64 5/94
Verifying : perl-Carp-1.50-460.el9.noarch 6/94
Verifying : perl-Class-Struct-0.66-481.el9.noarch 7/94
Verifying : perl-Data-Dumper-2.174-462.el9.x86_64 8/94
Verifying : perl-Digest-1.19-4.el9.noarch 9/94
Verifying : perl-Digest-MD5-2.58-4.el9.x86_64 10/94
Verifying : perl-Encode-4:3.08-462.el9.x86_64 11/94
Verifying : perl-English-1.11-481.el9.noarch 12/94
Verifying : perl-Errno-1.30-481.el9.x86_64 13/94
Verifying : perl-Exporter-5.74-461.el9.noarch 14/94
Verifying : perl-Fcntl-1.13-481.el9.x86_64 15/94
Verifying : perl-File-Basename-2.85-481.el9.noarch 16/94
Verifying : perl-File-Copy-2.34-481.el9.noarch 17/94
Verifying : perl-File-Find-1.37-481.el9.noarch 18/94
Verifying : perl-File-Path-2.18-4.el9.noarch 19/94
Verifying : perl-File-Temp-1:0.231.100-4.el9.noarch 20/94
Verifying : perl-File-stat-1.09-481.el9.noarch 21/94
Verifying : perl-FileHandle-2.03-481.el9.noarch 22/94
Verifying : perl-Getopt-Long-1:2.52-4.el9.noarch 23/94
Verifying : perl-Getopt-Std-1.12-481.el9.noarch 24/94
Verifying : perl-HTTP-Tiny-0.076-462.el9.noarch 25/94
Verifying : perl-IO-1.43-481.el9.x86_64 26/94
Verifying : perl-IO-Socket-IP-0.41-5.el9.noarch 27/94
Verifying : perl-IO-Socket-SSL-2.073-2.el9.noarch 28/94
Verifying : perl-IPC-Open3-1.21-481.el9.noarch 29/94
Verifying : perl-JSON-4.03-5.el9.noarch 30/94
Verifying : perl-MIME-Base64-3.16-4.el9.x86_64 31/94
Verifying : perl-Math-BigInt-1:1.9998.18-460.el9.noarch 32/94
Verifying : perl-Math-Complex-1.59-481.el9.noarch 33/94
Verifying : perl-Memoize-1.03-481.el9.noarch 34/94
Verifying : perl-Mozilla-CA-20200520-6.el9.noarch 35/94
Verifying : perl-NDBM_File-1.15-481.el9.x86_64 36/94
Verifying : perl-Net-SSLeay-1.94-1.el9.x86_64 37/94
Verifying : perl-POSIX-1.94-481.el9.x86_64 38/94
Verifying : perl-PathTools-3.78-461.el9.x86_64 39/94
Verifying : perl-Pod-Escapes-1:1.07-460.el9.noarch 40/94
Verifying : perl-Pod-Perldoc-3.28.01-461.el9.noarch 41/94
Verifying : perl-Pod-Simple-1:3.42-4.el9.noarch 42/94
Verifying : perl-Pod-Usage-4:2.01-4.el9.noarch 43/94
Verifying : perl-Scalar-List-Utils-4:1.56-462.el9.x86_64 44/94
Verifying : perl-SelectSaver-1.02-481.el9.noarch 45/94
Verifying : perl-Socket-4:2.031-4.el9.x86_64 46/94
Verifying : perl-Storable-1:3.21-460.el9.x86_64 47/94
Verifying : perl-Symbol-1.08-481.el9.noarch 48/94
Verifying : perl-Sys-Hostname-1.23-481.el9.x86_64 49/94
Verifying : perl-Term-ANSIColor-5.01-461.el9.noarch 50/94
Verifying : perl-Term-Cap-1.17-460.el9.noarch 51/94
Verifying : perl-Text-ParseWords-3.30-460.el9.noarch 52/94
Verifying : perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch 53/94
Verifying : perl-Time-1.03-481.el9.noarch 54/94
Verifying : perl-Time-HiRes-4:1.9764-462.el9.x86_64 55/94
Verifying : perl-Time-Local-2:1.300-7.el9.noarch 56/94
Verifying : perl-URI-5.09-3.el9.noarch 57/94
Verifying : perl-base-2.27-481.el9.noarch 58/94
Verifying : perl-constant-1.33-461.el9.noarch 59/94
Verifying : perl-if-0.60.800-481.el9.noarch 60/94
Verifying : perl-interpreter-4:5.32.1-481.el9.x86_64 61/94
Verifying : perl-libnet-3.13-4.el9.noarch 62/94
Verifying : perl-libs-4:5.32.1-481.el9.x86_64 63/94
Verifying : perl-mro-1.23-481.el9.x86_64 64/94
Verifying : perl-overload-1.31-481.el9.noarch 65/94
Verifying : perl-overloading-0.02-481.el9.noarch 66/94
Verifying : perl-parent-1:0.238-460.el9.noarch 67/94
Verifying : perl-podlators-1:4.14-460.el9.noarch 68/94
Verifying : perl-subs-1.03-481.el9.noarch 69/94
Verifying : perl-vars-1.05-481.el9.noarch 70/94
Verifying : unixODBC-2.3.9-4.el9.x86_64 71/94
Verifying : mysql-commercial-backup-9.2.0-1.1.el9.x86_64 72/94
Verifying : mysql-commercial-client-9.2.0-1.1.el9.x86_64 73/94
Verifying : mysql-commercial-client-plugins-9.2.0-1.1.el9.x86_64 74/94
Verifying : mysql-commercial-common-9.2.0-1.1.el9.x86_64 75/94
Verifying : mysql-commercial-icu-data-files-9.2.0-1.1.el9.x86_64 76/94
Verifying : mysql-commercial-libs-9.2.0-1.1.el9.x86_64 77/94
Verifying : mysql-commercial-libs-compat-9.2.0-1.1.el9.x86_64 78/94
Verifying : mysql-commercial-server-9.2.0-1.1.el9.x86_64 79/94
Verifying : mysql-commercial-test-9.2.0-1.1.el9.x86_64 80/94
Verifying : mysql-connector-c++-commercial-9.2.0-1.1.el9.x86_64 81/94
Verifying : mysql-connector-c++-commercial-compat-9.2.0-1.1.el9.x86_64 82/94
Verifying : mysql-connector-c++-commercial-jdbc-9.2.0-1.1.el9.x86_64 83/94
Verifying : mysql-connector-j-commercial-1:9.2.0-1.1.el9.noarch 84/94
Verifying : mysql-connector-odbc-commercial-9.2.0-1.1.el9.x86_64 85/94
Verifying : mysql-connector-odbc-commercial-setup-9.2.0-1.1.el9.x86_64 86/94
Verifying : mysql-connector-python3-commercial-9.2.0-1.1.el9.x86_64 87/94
Verifying : mysql-router-commercial-9.2.0-1.1.el9.x86_64 88/94
Verifying : mysql-shell-commercial-9.2.0-1.1.el9.x86_64 89/94
Verifying : mysqlx-connector-python3-commercial-9.2.0-1.1.el9.x86_64 90/94
Verifying : openssl-1:3.2.2-6.el9_5.x86_64 91/94
Verifying : openssl-1:3.0.7-17.el9_2.x86_64 92/94
Verifying : openssl-libs-1:3.2.2-6.el9_5.x86_64 93/94
Verifying : openssl-libs-1:3.0.7-17.el9_2.x86_64 94/94
Upgraded:
openssl-1:3.2.2-6.el9_5.x86_64 openssl-libs-1:3.2.2-6.el9_5.x86_64
Installed:
libtool-ltdl-2.4.6-46.el9.x86_64 mysql-commercial-backup-9.2.0-1.1.el9.x86_64 mysql-commercial-client-9.2.0-1.1.el9.x86_64 mysql-commercial-client-plugins-9.2.0-1.1.el9.x86_64
mysql-commercial-common-9.2.0-1.1.el9.x86_64 mysql-commercial-icu-data-files-9.2.0-1.1.el9.x86_64 mysql-commercial-libs-9.2.0-1.1.el9.x86_64 mysql-commercial-libs-compat-9.2.0-1.1.el9.x86_64
mysql-commercial-server-9.2.0-1.1.el9.x86_64 mysql-commercial-test-9.2.0-1.1.el9.x86_64 mysql-connector-c++-commercial-9.2.0-1.1.el9.x86_64 mysql-connector-c++-commercial-compat-9.2.0-1.1.el9.x86_64
mysql-connector-c++-commercial-jdbc-9.2.0-1.1.el9.x86_64 mysql-connector-j-commercial-1:9.2.0-1.1.el9.noarch mysql-connector-odbc-commercial-9.2.0-1.1.el9.x86_64 mysql-connector-odbc-commercial-setup-9.2.0-1.1.el9.x86_64
mysql-connector-python3-commercial-9.2.0-1.1.el9.x86_64 mysql-router-commercial-9.2.0-1.1.el9.x86_64 mysql-shell-commercial-9.2.0-1.1.el9.x86_64 mysqlx-connector-python3-commercial-9.2.0-1.1.el9.x86_64
openssl-fips-provider-3.0.7-6.el9_5.x86_64 openssl-fips-provider-so-3.0.7-6.el9_5.x86_64 perl-AutoLoader-5.74-481.el9.noarch perl-B-1.80-481.el9.x86_64
perl-Carp-1.50-460.el9.noarch perl-Class-Struct-0.66-481.el9.noarch perl-Data-Dumper-2.174-462.el9.x86_64 perl-Digest-1.19-4.el9.noarch
perl-Digest-MD5-2.58-4.el9.x86_64 perl-Encode-4:3.08-462.el9.x86_64 perl-English-1.11-481.el9.noarch perl-Errno-1.30-481.el9.x86_64
perl-Exporter-5.74-461.el9.noarch perl-Fcntl-1.13-481.el9.x86_64 perl-File-Basename-2.85-481.el9.noarch perl-File-Copy-2.34-481.el9.noarch
perl-File-Find-1.37-481.el9.noarch perl-File-Path-2.18-4.el9.noarch perl-File-Temp-1:0.231.100-4.el9.noarch perl-File-stat-1.09-481.el9.noarch
perl-FileHandle-2.03-481.el9.noarch perl-Getopt-Long-1:2.52-4.el9.noarch perl-Getopt-Std-1.12-481.el9.noarch perl-HTTP-Tiny-0.076-462.el9.noarch
perl-IO-1.43-481.el9.x86_64 perl-IO-Socket-IP-0.41-5.el9.noarch perl-IO-Socket-SSL-2.073-2.el9.noarch perl-IPC-Open3-1.21-481.el9.noarch
perl-JSON-4.03-5.el9.noarch perl-MIME-Base64-3.16-4.el9.x86_64 perl-Math-BigInt-1:1.9998.18-460.el9.noarch perl-Math-Complex-1.59-481.el9.noarch
perl-Memoize-1.03-481.el9.noarch perl-Mozilla-CA-20200520-6.el9.noarch perl-NDBM_File-1.15-481.el9.x86_64 perl-Net-SSLeay-1.94-1.el9.x86_64
perl-POSIX-1.94-481.el9.x86_64 perl-PathTools-3.78-461.el9.x86_64 perl-Pod-Escapes-1:1.07-460.el9.noarch perl-Pod-Perldoc-3.28.01-461.el9.noarch
perl-Pod-Simple-1:3.42-4.el9.noarch perl-Pod-Usage-4:2.01-4.el9.noarch perl-Scalar-List-Utils-4:1.56-462.el9.x86_64 perl-SelectSaver-1.02-481.el9.noarch
perl-Socket-4:2.031-4.el9.x86_64 perl-Storable-1:3.21-460.el9.x86_64 perl-Symbol-1.08-481.el9.noarch perl-Sys-Hostname-1.23-481.el9.x86_64
perl-Term-ANSIColor-5.01-461.el9.noarch perl-Term-Cap-1.17-460.el9.noarch perl-Text-ParseWords-3.30-460.el9.noarch perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch
perl-Time-1.03-481.el9.noarch perl-Time-HiRes-4:1.9764-462.el9.x86_64 perl-Time-Local-2:1.300-7.el9.noarch perl-URI-5.09-3.el9.noarch
perl-base-2.27-481.el9.noarch perl-constant-1.33-461.el9.noarch perl-if-0.60.800-481.el9.noarch perl-interpreter-4:5.32.1-481.el9.x86_64
perl-libnet-3.13-4.el9.noarch perl-libs-4:5.32.1-481.el9.x86_64 perl-mro-1.23-481.el9.x86_64 perl-overload-1.31-481.el9.noarch
perl-overloading-0.02-481.el9.noarch perl-parent-1:0.238-460.el9.noarch perl-podlators-1:4.14-460.el9.noarch perl-subs-1.03-481.el9.noarch
perl-vars-1.05-481.el9.noarch unixODBC-2.3.9-4.el9.x86_64
Complete!
Step 4: Start and Enable MySQL Service
Check the MySQL service status:
[root@RHEL-OEL23 MYSQL]# systemctl status mysqld
○ mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; preset: disabled)
Active: inactive (dead)
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Start the MySQL service
[root@RHEL-OEL23 MYSQL]# systemctl start mysqld
[root@RHEL-OEL23 MYSQL]# systemctl status mysqld
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; preset: disabled)
Active: active (running) since Thu 2025-02-27 01:52:38 EST; 3s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 302749 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 302821 (mysqld)
Status: "Server is operational"
Tasks: 36 (limit: 203176)
Memory: 468.9M
CPU: 2.240s
CGroup: /system.slice/mysqld.service
└─302821 /usr/sbin/mysqld
Step 5: Verify the Installation
MySQL retrieve a temporary password for the root user
[root@RHEL-OEL23 MYSQL]# grep 'temporary password' /var/log/mysqld.log
2025-02-27T06:52:35.258961Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: -szMFjb=R3iv
Now, log into MySQL with the temporary password:
[root@RHEL-OEL23 MYSQL]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 9.2.0-commercial
Copyright (c) 2000, 2025, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Next, change the root password to a strong one:
ALTER USER 'root'@'localhost' IDENTIFIED BY '########';
To check the MySQL version and confirm the installation:
SELECT VERSION();
Alert: The information provided on this website is for educational purposes only. It has been tested internally, but there is no guarantee it will work in every environment. It is strongly recommended to first test the process in a non-production environment, such as a User Acceptance Testing (UAT) setup. This allows you to verify configurations, identify any issues, and ensure a smooth transition to production, minimizing the risk of disruptions in your live environment. Always conduct thorough testing before applying changes to production systems.