Install mysql5.7.10 and ubuntumysql5.7.10 manually in Ubuntu
This tutorial describes how to manually install mysql5.7.10 on Ubuntu for your reference. The details are as follows:
1. Download the installation package
MySQL Official Website
Select the system ubuntu14.04extension deb_bundle.tar for download.
Ubuntu Linux 14.04 (x86, 64-bit), DEB Bundle MySQL Server 5.7.x 237.6 M (here x is the latest mysql version)
This document uses mysql5.7.10 as an example.
(File Name: mysql-server_5.7.10-1ubuntu14.04_amd64.deb-bundle.tar)
2. Decompress
Put it in/usr/local/src and decompress it:
1) Use the mv command to move the installation package to the target path:
Mv/home/"Current login username"/"installation package download path"/mysql-server_5.7.10-1ubuntu14.04_amd64.deb-bundle.tar/usr/local/src (Please modify the path in quotation marks)
2) cd to 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 the package:
tar -xf mysql-server_5.7.10-1ubuntu14.04_amd64.deb-bundle.tar
Decompress the following files:
libmysqlclient20_5.7.10-1ubuntu14.04_amd64.deblibmysqlclient-dev_5.7.10-1ubuntu14.04_amd64.deblibmysqld-dev_5.7.10-1ubuntu14.04_amd64.debmysql-client_5.7.10-1ubuntu14.04_amd64.debmysql-common_5.7.10-1ubuntu14.04_amd64.debmysql-community-client_5.7.10-1ubuntu14.04_amd64.debmysql-community-server_5.7.10-1ubuntu14.04_amd64.debmysql-community-source_5.7.10-1ubuntu14.04_amd64.debmysql-community-test_5.7.10-1ubuntu14.04_amd64.debmysql-server_5.7.10-1ubuntu14.04_amd64.debmysql-testsuite_5.7.10-1ubuntu14.04_amd64.debmysql-community_5.7.10-1ubuntu14.04_amd64.changes
(You can check it with ls)
3. Terminal command Installation
0) Preparations: update the dependency source and install libaio1 dependency
sudo apt-get updatesudo apt-get upgradeapt-get install libaio1
1) The following is my installation sequence, which is roughly the same for each server. 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.debsudo dpkg-preconfigure mysql-community-server_5.7.10-1ubuntu14.04_amd64.deb
In this step, enter the data root Password
sudo dpkg -i libmysqlclient20_5.7.10-1ubuntu14.04_amd64.debsudo dpkg -i libmysqlclient-dev_5.7.10-1ubuntu14.04_amd64.debsudo dpkg -i libmysqld-dev_5.7.10-1ubuntu14.04_amd64.debsudo dpkg -i mysql-community-client_5.7.10-1ubuntu14.04_amd64.debsudo dpkg -i mysql-client_5.7.10-1ubuntu14.04_amd64.debsudo dpkg -i mysql-common_5.7.10-1ubuntu14.04_amd64.deb
2) install the dependency package
sudo apt-get -f installsudo apt-get -f install libmecab2
3) install mysql-server
sudo dpkg -i mysql-community-server_5.7.9-1ubuntu14.04_amd64.debsudo dpkg -i mysql-server_5.7.9-1ubuntu14.04_amd64.deb
4. Check installation and configuration
mysql -u root -p
Enter the previously set account password
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.