Get the App
SLTechnology News&Howtos  ›  Database  › 

Ubuntu install msyql

Shulou Source: shulou.com Published: 2022-06-01 07:25:46 10月26日 Update

Download various packages online

1. Ensure that the system is online, can access the Internet, and has a domain name server

2, Sudo vi /etc/resolv.conf, add nameserver 8.8.8.8 (or the name server of the local area network where the computer is located) to the last line

3, Sudo apt-get update (update system software source)

4, apt-cache search mysql |grep server, find the installation package name related to mysql-server

5, sudo apt-get install mysql-server-5.6 -d (add-d at the end to download the installation package, otherwise choose online installation)

6, and then install dependencies.

7, download the good files in/var/cache/apt/archives, copy all downloaded deb files to a folder under the home directory.

8, go to folder, sudodpkg -I *.deb

9, then check if msyql runs netstat -antupl| grep :3306

Using offline packages

Start directly from step 7 above.

Tags: File online domain name folder server system service line Internet name online download local area local area network location end computer directory software interconnection guarantee Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info Shulou Technology OPPO Reno Apple