0% found this document useful (0 votes)
77 views6 pages

Chapter 1 - Mysql Cookbook Installing and Upgrading Mysql

This document discusses how to install and upgrade MySQL on Linux. It covers setting up repositories for EPEL, MySQL, MariaDB and Percona to enable MySQL installation and upgrading. It then provides instructions on installing MySQL using YUM, RPM files, generic binaries and utilities. It also covers uninstalling MySQL 8.

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views6 pages

Chapter 1 - Mysql Cookbook Installing and Upgrading Mysql

This document discusses how to install and upgrade MySQL on Linux. It covers setting up repositories for EPEL, MySQL, MariaDB and Percona to enable MySQL installation and upgrading. It then provides instructions on installing MySQL using YUM, RPM files, generic binaries and utilities. It also covers uninstalling MySQL 8.

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Chapter 1 – MySQL Cookbook

Installing and Upgrading MySQL

MySQL DBA/Linux Class 2021

Stephen Efange

Instructor: Stephen Efange

Feb 14th 2021


Table of Contents
Setting up Repositories for EPEL, MySQL, MariaDB, Percona......................................................................3
Setup EPEL Repository.............................................................................................................................3
Setup MySQL Repository.........................................................................................................................3
Setup MariaDB Repository......................................................................................................................4
Setup Percona Repository.......................................................................................................................5
Installing MySQL using YUM........................................................................................................................6
Installing MySQL 8.0 using RPM..................................................................................................................6
Installing MySQL on Linux using Generic Binaries.......................................................................................6
Installing MySQL utilities.............................................................................................................................6
Uninstalling MySQL 8...................................................................................................................................6
Setting up Repositories for EPEL, MySQL, MariaDB, Percona

Setup EPEL Repository

Yum install epel-release -y

Setup MySQL Repository

Go to the MySQL website and click on downloads

https://www.mysql.com/downloads/

Click on Yum Repository

https://dev.mysql.com/downloads/repo/yum/
Download the repository installer rpm for your system architecture and version or Linux or distro

Use wget to download the file:

cd /opt

wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm

rpm -ivh mysql80-community-release-el7-3.noarch.rpm

Setup MariaDB Repository


Setting up MariaDB repo automatically:

curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

Setting up MariaDB repo manually:

MariaDB - Setting up MariaDB Repositories - MariaDB

cd /etc/yum.repos.d

vi MariaDB.repo

# MariaDB 10.5 CentOS repository list - created 2021-02-14 20:01 UTC

# http://downloads.mariadb.org/mariadb/repositories/

[mariadb]

name = MariaDB

baseurl = http://yum.mariadb.org/10.5/centos7-amd64

gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

gpgcheck=1

Setup Percona Repository

Configuring Percona Repositories with percona-release

As root user or user with sudo proiviledges

# yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm

or

$ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm


Installing MySQL using YUM
Installing MySQL 8.0 using RPM
Installing MySQL on Linux using Generic Binaries
Installing MySQL utilities
Uninstalling MySQL 8

You might also like