How to Install MySQL on Linux Using RPM Packages

1) Download RPM packages zip file “V74391-01.zip” for MySQL 5.6.23 with files below:

MySQL RMP packages

2) unpack the zip file

# unzip V74391-01.zip
Archive: V74391-01.zip
 extracting: MySQL-shared-advanced-5.6.23-1.el7.x86_64.rpm 
 extracting: MySQL-test-advanced-5.6.23-1.el7.x86_64.rpm 
 extracting: MySQL-devel-advanced-5.6.23-1.el7.x86_64.rpm 
 extracting: MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64.rpm 
 extracting: MySQL-embedded-advanced-5.6.23-1.el7.x86_64.rpm 
 extracting: MySQL-server-advanced-5.6.23-1.el7.x86_64.rpm 
 extracting: MySQL-client-advanced-5.6.23-1.el7.x86_64.rpm 
 extracting: README.txt

3)To perform a standard minimal installation, install the server and client RPMs:

#rpm -i MySQL-server-advanced-5.6.23-1.el7.x86_64.rpm
#rpm -i MySQL-client-advanced-5.6.23-1.el7.x86_64.rpm

4) Or to install packages using yum. In a directory containing all RPM packages for a MySQL release, “yum install MySQL*rpm” installs them in the correct orde

 [root@racnote1 MySQL_5_6_23_RPMS]# yum install MySQL*rpm
Loaded plugins: langpacks
Examining MySQL-client-advanced-5.6.23-1.el7.x86_64.rpm: MySQL-client-advanced-5.6.23-1.el7.x86_64
Marking MySQL-client-advanced-5.6.23-1.el7.x86_64.rpm to be installed
Examining MySQL-devel-advanced-5.6.23-1.el7.x86_64.rpm: MySQL-devel-advanced-5.6.23-1.el7.x86_64
Marking MySQL-devel-advanced-5.6.23-1.el7.x86_64.rpm to be installed
Examining MySQL-embedded-advanced-5.6.23-1.el7.x86_64.rpm: MySQL-embedded-advanced-5.6.23-1.el7.x86_64
Marking MySQL-embedded-advanced-5.6.23-1.el7.x86_64.rpm to be installed
Examining MySQL-server-advanced-5.6.23-1.el7.x86_64.rpm: MySQL-server-advanced-5.6.23-1.el7.x86_64
Marking MySQL-server-advanced-5.6.23-1.el7.x86_64.rpm to be installed
Examining MySQL-shared-advanced-5.6.23-1.el7.x86_64.rpm: MySQL-shared-advanced-5.6.23-1.el7.x86_64
Marking MySQL-shared-advanced-5.6.23-1.el7.x86_64.rpm to be installed
Examining MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64.rpm: MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64
Marking MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64.rpm to be installed
Examining MySQL-test-advanced-5.6.23-1.el7.x86_64.rpm: MySQL-test-advanced-5.6.23-1.el7.x86_64
Marking MySQL-test-advanced-5.6.23-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package MySQL-client-advanced.x86_64 0:5.6.23-1.el7 will be installed
---> Package MySQL-devel-advanced.x86_64 0:5.6.23-1.el7 will be installed
---> Package MySQL-embedded-advanced.x86_64 0:5.6.23-1.el7 will be installed
---> Package MySQL-server-advanced.x86_64 0:5.6.23-1.el7 will be installed
---> Package MySQL-shared-advanced.x86_64 0:5.6.23-1.el7 will be installed
---> Package MySQL-shared-compat-advanced.x86_64 0:5.6.23-1.el7 will be installed
---> Package MySQL-test-advanced.x86_64 0:5.6.23-1.el7 will be installed
--> Finished Dependency Resolution
http://linuxdownload.adobe.com/linux/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: linuxdownload.adobe.com; Unknown error"
Trying other mirror.
http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: public-yum.oracle.com; Unknown error"
Trying other mirror.
http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: public-yum.oracle.com; Unknown error"
Trying other mirror.

Dependencies Resolved

======================================================================================================================================================
 Package Arch Version Repository Size
======================================================================================================================================================
Installing:
 MySQL-client-advanced x86_64 5.6.23-1.el7 /MySQL-client-advanced-5.6.23-1.el7.x86_64 74 M
 MySQL-devel-advanced x86_64 5.6.23-1.el7 /MySQL-devel-advanced-5.6.23-1.el7.x86_64 17 M
 MySQL-embedded-advanced x86_64 5.6.23-1.el7 /MySQL-embedded-advanced-5.6.23-1.el7.x86_64 485 M
 MySQL-server-advanced x86_64 5.6.23-1.el7 /MySQL-server-advanced-5.6.23-1.el7.x86_64 264 M
 MySQL-shared-advanced x86_64 5.6.23-1.el7 /MySQL-shared-advanced-5.6.23-1.el7.x86_64 8.1 M
 MySQL-shared-compat-advanced x86_64 5.6.23-1.el7 /MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64 11 M
 MySQL-test-advanced x86_64 5.6.23-1.el7 /MySQL-test-advanced-5.6.23-1.el7.x86_64 342 M

Transaction Summary
======================================================================================================================================================
Install 7 Packages

Total size: 1.2 G
Installed size: 1.2 G
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
 Installing : MySQL-client-advanced-5.6.23-1.el7.x86_64 1/7 
 Installing : MySQL-devel-advanced-5.6.23-1.el7.x86_64 2/7 
 Installing : MySQL-embedded-advanced-5.6.23-1.el7.x86_64 3/7 
 Installing : MySQL-test-advanced-5.6.23-1.el7.x86_64 4/7 
 Installing : MySQL-server-advanced-5.6.23-1.el7.x86_64 5/7 
 Installing : MySQL-shared-advanced-5.6.23-1.el7.x86_64 6/7 
 Installing : MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64 7/7 
 Verifying : MySQL-embedded-advanced-5.6.23-1.el7.x86_64 1/7 
 Verifying : MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64 2/7 
 Verifying : MySQL-devel-advanced-5.6.23-1.el7.x86_64 3/7 
 Verifying : MySQL-shared-advanced-5.6.23-1.el7.x86_64 4/7 
 Verifying : MySQL-test-advanced-5.6.23-1.el7.x86_64 5/7 
 Verifying : MySQL-server-advanced-5.6.23-1.el7.x86_64 6/7 
 Verifying : MySQL-client-advanced-5.6.23-1.el7.x86_64 7/7 

Installed:
 MySQL-client-advanced.x86_64 0:5.6.23-1.el7 MySQL-devel-advanced.x86_64 0:5.6.23-1.el7 MySQL-embedded-advanced.x86_64 0:5.6.23-1.el7 
 MySQL-server-advanced.x86_64 0:5.6.23-1.el7 MySQL-shared-advanced.x86_64 0:5.6.23-1.el7 MySQL-shared-compat-advanced.x86_64 0:5.6.23-1.el7 
 MySQL-test-advanced.x86_64 0:5.6.23-1.el7 

Complete!

5) Check installed MySQL packages:

[root@racnote1 MySQL_5_6_23_RPMS]# rpm -qa |grep -i mysql
MySQL-client-advanced-5.6.23-1.el7.x86_64
MySQL-test-advanced-5.6.23-1.el7.x86_64
MySQL-shared-compat-advanced-5.6.23-1.el7.x86_64
MySQL-server-advanced-5.6.23-1.el7.x86_64
MySQL-embedded-advanced-5.6.23-1.el7.x86_64
MySQL-shared-advanced-5.6.23-1.el7.x86_64
mysql-community-release-el7-5.noarch
MySQL-devel-advanced-5.6.23-1.el7.x86_64

6) Installation Layout for Linux RPM Packages

Directory Contents of Directory
/usr/bin Client programs and scripts
/usr/sbin The mysqld server
/var/lib/mysql Log files, databases
/usr/share/info MySQL manual in Info format
/usr/share/man Unix manual pages
/usr/include/mysql Include (header) files
/usr/lib/mysql Libraries
/usr/share/mysql Miscellaneous support files, including error messages, character set files, sample configuration files, SQL for database installation
/usr/share/sql-bench Benchmarks

 

 

 

 

Advertisements
This entry was posted in Install and Upgrade, MySQL and tagged , , . Bookmark the permalink.

One Response to How to Install MySQL on Linux Using RPM Packages

  1. Bkanth says:

    Reblogged this on WatsupDBAz.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s