Ubuntu19 install MySQL pit

Finally, there is an internet. This thing is a pit that I walked through a few days ago. Now let's record it.

For lower versions of Ubuntu, you can install MySQL directly with the following command

sudo apt install mysql-server

If installed here, MySQL 5.7 is installed by default, but due to compatibility issues, Ubuntu19 no longer supports its operation, including Ubuntu18.

During the installation process, there is no prompt to enter the root password. After the installation is complete, the root password is reset, but it still cannot log in normally. After querying, it is found that the higher version of Ubuntu no longer supports MySQL 5.7 The version is now available, and the specific information can be checked on the following page.

https://dev.mysql.com/downloads/mysql/

After stepping on the pit many times, I found that only the installation of MySQL8.3 can solve this problem perfectly.

You can download it in this link below

https://dev.mysql.com/downloads/repo/apt/

After the download comes back, execute the following command

sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb

After the previous selection is completed, switch to the bottom "OK", then press the "Tab" key, switch to the bottom ok and press Enter.

After that, it is a very normal operation. First perform the update and then install it. At this time, the 8.x version of MySQL is already installed. If you need to download other corresponding versions, just follow this method to download it.

sudo apt update
sudo apt install mysql-server

If it’s helpful to you, please click Ad or Looking, it is a kind of support for me

Recommended Posts

Ubuntu19 install MySQL pit
Install mysql on Ubuntu 14.04
Install MySQL under Ubuntu
Install Mysql offline on Ubuntu
How to install MySQL on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
How to install mysql in Ubuntu 14.04
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Ubuntu install MySQL password initialization problem
How to install mysql in Ubuntu 14.04
How to install MySQL on Ubuntu 14.04
CentOS7.2 install Mysql5.7.13
CentOS7 install MySQL
ubuntu18.04 install python2
ubuntu18.04 install docker
Ubuntu install guide
ubuntu install nodejs
ubuntu 16 install asp.net
ubuntu install leanote
CentOS install mysql
ubuntu install Jenkins
CentOS7 install mysql
CentOS 7 install MySQL 5.6
docker install ubuntu
ubuntu install elasticsearch
CentOS8 install MySQL8.0
CentOS7 install mysql8
Ubuntu14 upgrade MySQL
CentOS7 install MySQL8
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
centos 7.5 install mysql5.7.17
ubuntu 18.04 install teamviewer
ubuntu install sendmail
How to install MySQL on Ubuntu 18.04 (linux)
Install apache+PHP under Ubuntu
install vscode on ubuntu18
Install node.js under Ubuntu
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install python3.6 under Ubuntu 16.04
Install docker on Ubuntu
CentOS6.5 offline install MySQL5.6.26
Install MySQL5.7 in centos7
Install mysql5.7 under CentOS7
Ubuntu18.04 install opencv 3.2.0 solution
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
Ubuntu16.04 install Mongodb tutorial
Install Django on ubuntu
CentOS 7.2 Yum install MySQL 5.6
Install Pytorch+CUDA on Ubuntu 16.04
2018-09-11 Install arduino under Ubuntu