Upload
praveen-bachu
View
232
Download
0
Embed Size (px)
Citation preview
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
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 .................................................................................................................. 5
MySQL (5.7) Installation .......................................................................................................................... 7
MySQL-Workbench Installation .............................................................................................................. 8
Verify Everything From Repository Cache ............................................................................................... 9
MySQL (5.7)Password Setup ................................................................................................................... 9
MySQL-Workbench Configuration ........................................................................................................ 10
Oracle Linux 6 Installation Link .............................................................................................................. 13
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
2/13
Introduction Step by step installation process to install MySQL 5.7 (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 with 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
http://dev.mysql.com/doc/workbench/en/wb-installing-linux.htmlhttp://dev.mysql.com/doc/workbench/en/wb-installing-linux.htmlhttp://dev.mysql.com/doc/workbench/en/wb-installing-linux.html7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
3/13
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.7) YUM Repository
To play around I enabled tools and all the related to MySQL 5.7, no harm to do this
http://dev.mysql.com/downloads/repo/yum/http://dev.mysql.com/downloads/repo/yum/http://dev.mysql.com/downloads/repo/yum/7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
4/13
Verify using YUM what all are enabled now
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
5/13
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
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
6/13
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
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
7/13
Additionally you need the below package "gtk2-devel" too. Install it if you get the below
error when you start up MySQL-Workbench
If the above package is not installed, you get the below error
MySQL (5.7) Installation
Verify and install
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
8/13
Verify the installation
MySQL-Workbench Installation
Verify and install
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
9/13
Verify Everything From Repository Cache
The "-C " shows you quickly what were installed in the repository
MySQL (5.7)Password Setup With MySQL (5.7) you verify the temporary password first with the below command and you
should login with this temporary password first
The next step is to assign a new password
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
10/13
Assign a new password to MySQL Root User (must be strong, an example is below)
MySQL-Workbench Configuration
Start the Workbench
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
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
11/13
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)
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
12/13
Click on the MySQL-Workbench connection to open the main window
This is a new section "Performance Tab" available from MySQL 5.6 onwards
7/25/2019 MySQL 5 7 and Workbench On Oracle Linux 6 Using YUM
13/13
Some other verifications
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
https://oracle-base.com/articles/linux/oracle-linux-6-installationhttps://oracle-base.com/articles/linux/oracle-linux-6-installationhttps://oracle-base.com/articles/linux/oracle-linux-6-installation