Home >Database >Mysql Tutorial >Detailed explanation of manual installation of mysql5.7.10 on Ubuntu (picture)

Detailed explanation of manual installation of mysql5.7.10 on Ubuntu (picture)

黄舟
黄舟Original
2017-03-28 13:31:561421browse

This article mainly introduces the detailed process of manual installation of Ubuntu mysql5.7.10. It has certain reference value. Interested friends can refer to it

This tutorial shares the process of manually installing mysql5.7.10 on Ubuntu for your reference. The specific content is as follows

1. Download the installation package

MySQL official website Download

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

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

This article uses mysql5.7.10 as an example

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

2. Unzip

Put it under /usr/local/src and unzip it:

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 yourself)

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), decompress:

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

Decompress the following files:

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 work:Updatedependency source and install libaio1 dependency

sudo apt-get update
sudo apt-get upgrade

apt-get install libaio1

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

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 entering 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, detect installation and configuration

mysql -u root -p

Enter the previously set account password

The above is the detailed content of Detailed explanation of manual installation of mysql5.7.10 on Ubuntu (picture). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn