Thursday, December 19, 2024

Install Mysql 5.7 On Ubuntu 22.04 and 24.04 LTS

In This Blog We are going to Install Mysql 5.7 On Ubuntu 22.04 and 24.04 LTS.

Step 1: Add MySQL APT Repository and Download Mysql Deb

sudo apt update
sudo apt install wget -y
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

 

👉 In the prompt, choose Ubuntu Bionic and click Ok


👉 The next prompt shows MySQL 8.0 chosen by default. Choose the first option and click OK


👉 In the next prompt, select MySQL 5.7 server and click OK.


👉 The next prompt selects MySQL5.7 by default. Choose the last option Ok and click OK


Step 2: Update MySQL Repository.

sudo apt-get update

⚠️ Note :- If you will receive Error of Public Key then execute below command with replace of updated public key which is shown in the error.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys public-Key
sudo apt-get update
sudo apt-cache policy mysql-server


Step 3: Install MySQL 5.7

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

👉 Enter and re-enter root password:


Step 4: Check MySQL 5.7 version

mysql --version

 

 

Related Articles:

No comments:

Post a Comment

testing