Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 32463  / 2 Years ago, mon, may 30, 2022, 1:38:34

Can anyone help me in installing mysql 5.7.
I tried following this answer, but when I run


sudo apt-cache policy mysql-server

It gives me:


8.0.20-0ubuntu0.20.04.1 500
500 http://pk.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://pk.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages
8.0.19-0ubuntu5 500
500 http://pk.archive.ubuntu.com/ubuntu focal/main amd64 Packages
500 http://pk.archive.ubuntu.com/ubuntu focal/main i386 Packages
5.7.31-1ubuntu18.04 500
500 http://repo.mysql.com/apt/ubuntu bionic/mysql-5.7 amd64 Packages
5.7.30-0ubuntu0.18.04.1 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages

Which are different from the linked answer.


When I tried to


sudo apt install -f mysql-client=5.7.30-1ubuntu18.04

It gives me error


Version '5.7.30-1ubuntu18.04' for 'mysql-client' was not found.

When I run sudo apt install -f mysql-client-5.7 command it installed mysql version.
I also does not finds mysql-community-server=5.7.30-1ubuntu18.04.


I tried to run sudo apt install -f mysql-community-server It gives me following error:


mysql-community-server : Depends: mysql-client (= 5.7.31-1ubuntu18.04) but 8.0.20-0ubuntu0.20.04.1 is to be installed

More From » apt

 Answers
6

Mysql 5.7 is not available to the Ubuntu 20.04. Only mysql 8.0 and higher version are available to Ubuntu 20.04 when you use mysql repository. Here you are using bionic source list (Ubuntu 18.04) for Ubuntu 20.04. I believe this workaround sometimes causes messup with dependencies tree.


You need to download mysql 5.7 packages with their dependencies from official mysql site here and install manually by executing below command in terminal.


sudo dpkg -i <package name>

[#3012] Monday, May 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oraoming

Total Points: 354
Total Questions: 105
Total Answers: 124

Location: Iraq
Member since Sat, Apr 3, 2021
3 Years ago
oraoming questions
Fri, Aug 20, 21, 10:08, 3 Years ago
Mon, May 24, 21, 21:56, 3 Years ago
Mon, Dec 12, 22, 23:21, 1 Year ago
Mon, Sep 12, 22, 11:38, 2 Years ago
;