Manually install mysql5.7.10 on Ubuntu

Manually install mysql5.7.10 on Ubuntu

This tutorial shares the process of manually installing MySQL 5.7.10 on Ubuntu for your reference. The specific contents are as follows

1. Download the installation package

MySQL official website download address

Select the system version Ubuntu14.04 with the suffix deb_bundle.tar to download

Ubuntu Linux 14.04 (x86, 64-bit), DEB Bundle MySQL Server 5.7.x 237.6M (x here means the latest version of MySQL)

This article uses mysql5.7.10 as an example

(File name: mysql-server_5.7.10-1ubuntu14.04_amd64.deb-bundle.tar)

2. Decompression

Unzip it in /usr/local/src:

1) Use the mv command to move the installation package to the target path:

mv /home/"currently logged in user name"/"download path of the installation package"/mysql-server_5.7.10-1ubuntu14.04_amd64.deb-bundle.tar /usr/local/src (please modify the path in quotation marks)

2) cd to the target path:

cd /usr/local/src

3) Grant permissions:

sudo chmod +x mysql-server_5.7.10-1ubuntu14.04_amd64.deb-bundle.tar

4) Decompression:

tar -xf mysql-server_5.7.10-1ubuntu14.04_amd64.deb-bundle.tar

The following files are extracted:

libmysqlclient20_5.7.10-1ubuntu14.04_amd64.deb

libmysqlclient-dev_5.7.10-1ubuntu14.04_amd64.deb
libmysqld-dev_5.7.10-1ubuntu14.04_amd64.deb
mysql-client_5.7.10-1ubuntu14.04_amd64.deb
mysql-common_5.7.10-1ubuntu14.04_amd64.deb
mysql-community-client_5.7.10-1ubuntu14.04_amd64.deb
mysql-community-server_5.7.10-1ubuntu14.04_amd64.deb
mysql-community-source_5.7.10-1ubuntu14.04_amd64.deb
mysql-community-test_5.7.10-1ubuntu14.04_amd64.deb
mysql-server_5.7.10-1ubuntu14.04_amd64.deb
mysql-testsuite_5.7.10-1ubuntu14.04_amd64.deb
mysql-community_5.7.10-1ubuntu14.04_amd64.changes

(You can check it with ls)

3. Terminal command installation

0) Preparation: Update dependency sources and install libaio1 dependencies

sudo apt-get update
sudo apt-get upgrade

apt-get install libaio1

1) The following is my installation order, which is roughly the same for every machine. If the terminal prompts which dependency is missing, you can slightly modify the installation order.

sudo dpkg -i mysql-common_5.7.10-1ubuntu14.04_amd64.deb
sudo dpkg-preconfigure mysql-community-server_5.7.10-1ubuntu14.04_amd64.deb

This step requires you to enter the root password of the data

sudo dpkg -i libmysqlclient20_5.7.10-1ubuntu14.04_amd64.deb
sudo dpkg -i libmysqlclient-dev_5.7.10-1ubuntu14.04_amd64.deb
sudo dpkg -i libmysqld-dev_5.7.10-1ubuntu14.04_amd64.deb
sudo dpkg -i mysql-community-client_5.7.10-1ubuntu14.04_amd64.deb
sudo dpkg -i mysql-client_5.7.10-1ubuntu14.04_amd64.deb
sudo dpkg -i mysql-common_5.7.10-1ubuntu14.04_amd64.deb

2) Install dependency packages

sudo apt-get -f install
sudo apt-get -f install libmecab2

3) Install mysql-server

sudo dpkg -i mysql-community-server_5.7.9-1ubuntu14.04_amd64.deb
sudo dpkg -i mysql-server_5.7.9-1ubuntu14.04_amd64.deb

4. Detection, installation and configuration

mysql -u root -p

Enter the account password you set previously

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Ubuntu 18.04 installs mysql 5.7.23
  • Install MySQL 5.7 on Ubuntu 18.04
  • Ubuntu16.04 installation mysql5.7.22 graphic tutorial
  • Solve the problem of ERROR 1045 (28000): Access denied for user ''root''@''localhost'' when logging in after installing MySQL 5.7.17 on Ubuntu 16.04
  • MySQL 5.7.17 installation and configuration tutorial under Linux (Ubuntu)
  • MySQL 5.7.17 installation and configuration method graphic tutorial (Ubuntu 16.04)
  • Detailed tutorial on installing and configuring MySql5.7 on Ubuntu 20.04

<<:  JavaScript to switch multiple pictures

>>:  Autotrash tool for Linux to automatically delete old junk files at a scheduled time

Recommend

How to use Nginx to proxy multiple application sites in Docker

Preface What is the role of an agent? - Multiple ...

Implementing form submission without refreshing the page based on HTML

Using ajax to implement form submission without re...

Ideas and codes for implementing waterfall flow layout in uniapp applet

1. Introduction Is it considered rehashing old st...

MySQL Community Server 5.7.19 Installation Guide (Detailed)

MySQL official website zip file download link htt...

Beginners learn some HTML tags (3)

Beginners who are exposed to HTML learn some HTML...

Writing Snake Game with Native JS

This article shares the specific code of writing ...

Summary of things to pay attention to in the footer of a web page

Lots of links You’ve no doubt seen a lot of sites ...

Use of MySQL stress testing tool Mysqlslap

1. MySQL's own stress testing tool Mysqlslap ...

Detailed explanation of loop usage in javascript examples

I was bored and sorted out some simple exercises ...

JavaScript to achieve product query function

This article example shares the specific code of ...

Discussion on CSS style priority and cascading order

In general : [1 important flag] > [4 special fl...

Practical record of solving MySQL deep paging problem

Table of contents Preface Why does limit deep pag...

How to create dynamic QML objects in JavaScript

1. Dynamically create objects There are two ways ...

Use label tag to select the radio button by clicking the text

The <label> tag defines a label (tag) for an...