Support Questions

Find answers, ask questions, and share your expertise

How To create the Mysql Local Repository for Installation

Expert Contributor

You can download mysql rpm and then use yum for install.

Expert Contributor
Created as below MySql Repository
1) Download the repository of Mysql server as below location, you should have the internet 
connection network or host, download according to you Linux version mine 6.8.
Red Hat 6.8 Linux as below

Download the yum package :-

Red Hat 6.8 Linux as below

2) Install the YUM package 
[root@ ~]# yum install mysql57-community-release-el6-9.noarch.rpm
Loaded plugins: fastestmirror
Setting up Install Process
Examining mysql57-community-release-el6-9.noarch.rpm: mysql57-community-release-el6-9.noarch
Marking mysql57-community-release-el6-9.noarch.rpm to be installed
Repository HDP-UTILS- is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el6-9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                               Arch               Version              Repository                                           Size
 mysql57-community-release             noarch             el6-9                /mysql57-community-release-el6-9.noarch             8.6 k

Transaction Summary
Install       1 Package(s)

Total size: 8.6 k
Installed size: 8.6 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : mysql57-community-release-el6-9.noarch                                                                                1/1
  Verifying  : mysql57-community-release-el6-9.noarch                                                                                1/1

  mysql57-community-release.noarch 0:el6-9

[root@ ~]#

3) Delete the other version which not required repository files from /etc/yum.repos.d/mysql-community.repo
4) # vi /etc/yum.repos.d/mysql-community.repo
# Enable to use MySQL 5.6
name=MySQL 5.6 Community Server

#yum repolist |grep MYSQL ( It should list the MySql Repository )

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.