Get the App
SLTechnology News&Howtos  ›  Database  › 

Ubuntu16.04 installs the specified version of Mysql (5.5 to 5.6)

Shulou Source: shulou.com Published: 2022-06-01 15:49:51 09月13日 Update

Ubuntu has been upgraded to 16.04.Executing apt-get install mysql directly will install 5.7,

Unfortunately, the APP developed under 5.7 can not start up, but need to be downgraded.

The methods you have tried are as follows:

1. Refer to the downgrading method on the official website: https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/downgrading.html( is a complete failure. I don't even know where the failure lies.)

2. Refer to the APT method of the official website, hoping to install a lower version directly and fail. Https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/

3, the official website downloads an apt config tool, https://repo.mysql.com//mysql-apt-config_0.8.3-1_all.deb is really a pity, full of expectations to succeed, the configuration interface is still only 5.7options.

4, other people's website found a low version of the configuration tool, http://repo.mysql.com//mysql-apt-config_0.6.0-1_all.deb, more fucking pity, do not recognize Ubuntu16.04, manually specified to make him think I am 15.01, the configuration interface finally shows 5.6ecstasy, apt-get update;apt-get install mysql-server still prompts to install 5.7.00.

-

Google got a hand.

The solution is as follows-

one

Sudo apt-get install software-properties-common

Sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty main'

Sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty main'

2 sudo apt-get update (this step takes too long, I simply delete all the feeds I added previously)

3 sudo apt-cache search mysql | grep 5.6

4 sudo apt install mysql-server-5.6 (apt-get is not used here, but apt)

Installation completed, successful.

Tips: if you report an error Sub-process / usr/bin/dpkg returned an error code (1), try rm / var/lib/mysql/debian-5.7.flag

Tags: Configuration version success tools methods interface reference try ecstasy ecstasy only place manual way solution helplessness time results website but Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS Shulou Technology Huawei OPPO Reno