0% found this document useful (0 votes)
27 views

MySQL 5 6 and Workbench On Oracle Linux 6 Using YUM

Step by step installation process to install MySQL 5.6 (fresh installation) on Oracle Linux (6.4) and MySQL-Workbench ! Bare minimum screenshots are used that means just the required part to keep going

Uploaded by

Praveen Bachu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

MySQL 5 6 and Workbench On Oracle Linux 6 Using YUM

Step by step installation process to install MySQL 5.6 (fresh installation) on Oracle Linux (6.4) and MySQL-Workbench ! Bare minimum screenshots are used that means just the required part to keep going

Uploaded by

Praveen Bachu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Table of Contents

Introduction............................................................................................................................................. 2
Check Previous MySQL Files .................................................................................................................... 2
Enabling Oracle Public YUM Repository .................................................................................................. 2
EPEL Repository Setup............................................................................................................................. 2
MySQL YUM Setup .................................................................................................................................. 3
MySQL-Workbench Packages .................................................................................................................. 6
MySQL Startup........................................................................................................................................ 9
MySQL Configuration ............................................................................................................................ 10
MySQL-Workbench Configuration ........................................................................................................ 11
Oracle Linux 6 Installation Link .............................................................................................................. 13

Introduction
Step by step installation process to install MySQL 5.6 (fresh installation) on Oracle Linux (6.4)
Virtual Machine using YUM method
This should apply to most RHEL Clones, but you can test for yourself
The OS/VM connects to the internet
Bare minimum screenshots are used that means just the required part to keep going

Check Previous MySQL Files


You can check whether there are previous files already residing
First the RPMs got to be deleted followed by the below command
There will be MySQL related files under the path " \selinux\...\ ". That do not harm

Enabling Oracle Public YUM Repository


Starting from Oracle Linux 6 you already get a Oracle public YUM repository already
You just got to enable it. Below are the steps to do it if you have not done
I have Oracle Linux 6.4 so I enable for "public_ol6_u4_base" and also the latest one is
enabled

EPEL Repository Setup


EPEL repository download for MySQL-Workbench (must needed)
At the bottom of this link you see the instructions to get EPEL repository RPM package
http://dev.mysql.com/doc/Workbench/en/wb-installing-linux.html

The EPEL repository is downloaded and you can install it using the same instruction on the
link or using 'YUM'
Below you see both were downloaded

EPEL Repository Installation

MySQL YUM Setup


Download
http://dev.mysql.com/downloads/repo/yum/
On the above link you see the below one which should be downloaded

MySQL Repository Installation

Verify using YUM the enabled MySQL repository

Enabling The MySQL( 5.6) YUM Repository

To play around I enabled tools and all the related to MySQL 5.7, no harm to do this

Verify using YUM what all are enabled now

Agree with a 'y' for the installation and for the keys

MySQL-Workbench Packages
The below packages are needed to get MySQL-Workbench working
The steps below guide you to verify and also to install them
You can have a check first and install them. All these 'i.686, devel ' are to be installed

You can have a check first and install them. All these 'i.686, devel ' are to be installed

You can have a check first and install them. All these 'i.686, devel ' are to be installed

You can have a check first and install them. All these 'i.686, devel ' are to be installed

You can have a check first and install them. All these 'i.686, devel ' are to be installed
Note: The packages related to "proj" exists. No need for "proj-epsg" etc that shows up

You can have a check first and install them. All these 'i.686, devel ' are to be installed

Additionally you need the below package "gtk2-devel" too. Install it if you get the below
error when you start up MySQL-Workbench

Verify the installation

MySQL Startup

Run the below command for securing the MySQL installation

Verify the version


Note : you should enter the password that you assigned in the previous step

MySQL Configuration
The first and foremost basic configurations for MySQL Server
Assuming the firewall is enabled, the default port 3306 is not enabled. So, this is a basic step
to make it enabled and save it
MySQL-Workbench does need it

Open the file "vi /etc/my.cnf" and add the following lines, in bind-address you should enter
the Server IP there (Static IP in my case if you have IP coming from DHCP then you ignore
this line and verify for yourself)

MySQL-Workbench Configuration
The default connection is present already, but we got to change it, right click on this
connection

The default path for MySQL socket file is /var/lib/mysql/mysql.sock


Change the connection method and enter the socket file path as shown below

The below setting is the default for Linux, you select the Oracle Linux in 'System Type' for
the right settings (Note : for default Linux system type you see it is /etc/init.d/mysql start
which does allow you to start and stop on Oracle Linux )

Enter "root" password, simultaneously Click on "test connection"

This is a new section available from MySQL 5.6 onwards

That's all ! you get a working MySQL-Workbench too to play around

Oracle Linux 6 Installation Link


https://oracle-base.com/articles/linux/oracle-linux-6-installation

You might also like