How to install mysql 5.7 in Ubuntu 20.04.3 LTS

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=ev8T_McmRjY



Category:
Tutorial
Duration: 4:23
7,440 views
85


In this video i am going to install mysql 5.7 in ubuntu 20.04.3 LTS.
Steps :


sudo apt update
wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb
Ubuntu bionic - Mysql server & cluster (currently selected....x) - mysql 5-7 - ok

sudo apt-get update

If you get an error like this :

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 script :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29

sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7*

sudo apt-get update

If you got an error again :
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.


fix with this:
vi /etc/apt/preferences.d/mysql

Package: mysql-server
Pin: version 5.7*
Pin-Priority: 1001

Package: mysql-client
Pin: version 5.7*
Pin-Priority: 1001

Clean Setup again:
apt-get remove mysql-client mysql-common mysql-community-client mysql-community-server mysql-server
apt-get purge mysql-client mysql-common mysql-community-client mysql-community-server mysql-server

apt-get update

Install mysql again :
sudo apt install -f mysql-client mysql-community-server mysql-server




Other Videos By Ambar Hasbiyatmoko


2022-05-31How to fix Codeigniter 3.1.11 session error - Session is missing after redirect page
2022-05-27Fix php script as systemd service - php warning: fopen: failed to openstream: Read-only file system
2022-05-22Cara Install Sonarqube lewat AWS Marketplace
2022-05-08Membuat EFS (Elastic File System) One Zone/Single AZ di AWS
2022-02-27How to install mongodb php driver(php7.2) through composer and connect by Codeigniter in ubuntu18
2022-02-27How to fix composer error upgrade version 2.2 - Command "self-update" is not defined in ubuntu18.04
2022-02-27How to fix mongodb - Error parsing YAML config file: yamp-cpp error at line 32, illegal map value
2022-02-27How to install mongodb 4.4 in Ubuntu 18.04
2022-02-12Cara Setup Application Load Balancer di AWS
2022-01-30How to fix mysql - mysql server depends on mysql community server 5.7 when installing on Ubuntu 20.4
2022-01-30How to install mysql 5.7 in Ubuntu 20.04.3 LTS
2022-01-04How to fix: pecl install mongodb - ERROR: phpize not found, phpize failed
2021-12-26Wireshark error - Couldn't run usr-bin-dumpcap in child process: Permission denied
2021-12-04How to solve - Package 'python-certbot-apache' has no installation candidate on Ubuntu 20.04
2021-11-28How to solve - require dev mikey179 vfsStream is invalid, it should not contain uppercase characters
2021-11-14Membuat VPS gratis 12 bulan di AWS (Amazon Web Service)
2021-11-10Cara Daftar AWS menggunakan Jenius Debit Card
2021-09-18Menghitung estimasi biaya penggunaan EC2 / VPS di AWS
2021-08-30Mengubah root folder webserver apache ke home-user-public_html di Ubuntu 20.04
2021-08-29How to solve - cannot remove 'external_volume': Device or resource busy in Ubuntu
2021-08-23Menambahkan volume baru di EC2 AWS



Tags:
mysql
install
mysql 5.7
ubuntu
lts
terminal
error
tutorial
database
version