Install MySQL 5.7 in Ubuntu 18.04, 20.04 , 22.04

Published: 28 February 2023
on channel: Coders Gateway - Web Tech solutions
3,328
40

Download MySQL Apt config and add to update Source.
============================================
Download by Browser:
https://dev.mysql.com/get/mysql-apt-c...

Or
By Terminal
-------------------------
wget https://dev.mysql.com/get/mysql-apt-c...

sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb
sudo apt-get update

If you get an ERROR like this below:
================================
""
W: GPG error: http://repo.mysql.com/apt/ubuntu bionic InRelease:
The following signatures couldn't be verified because the
public key is not available: NO_PUBKEY 467B942D3A79BD29
""
RUN this Command with Above KEY "467B942D3A79BD29":
==================================================

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29

Install Mysql5.7
=====================
sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7*

sudo apt-get update

==================
IF Any error like Below:
"=================
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-community-server (= 5.7.37-1ubuntu18.04); however:
Package mysql-community-server is not configured yet.
"
=============================================
Remove Mysql and Install Again with below Commands
=============================================
Clean Up And Install
===================
sudo apt-get remove mysql-client mysql-common mysql-community-client mysql-community-server mysql-server

sudo apt-get purge mysql-client mysql-common mysql-community-client mysql-community-server mysql-server

sudo apt-get update

Once Again Run this MYSQL5.7 install
=================================
sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7*


Thats it..


Watch video Install MySQL 5.7 in Ubuntu 18.04, 20.04 , 22.04 online without registration, duration hours minute second in high quality. This video was added by user Coders Gateway - Web Tech solutions 28 February 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,328 once and liked it 40 people.