CWP panel

Install MySQL 5.7 in Ubuntu 18.04, 20.04 , 22.04



Download MySQL Apt config and add to update Source.
============================================
Download by Browser:

Or
By Terminal
————————-
wget

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: 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..

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button