Install Mysql offline in Ubuntu and mysql offline in ubuntu

Source: Internet
Author: User

Install Mysql offline in Ubuntu and mysql offline in ubuntu

I. Installation Package

Download the Mysql installation package from the network and copy it to the USB flash drive.

: Https://dev.mysql.com/downloads/mysql/

Ii. mount a USB flash drive

2.1 view partitions

Enter the command cat/proc/partitions first

Insert a USB flash drive and re-enter the command

Cat/proc/partitions

The results show that there are more

8 16 *** sdb
8 17 * sdb1

The new USB flash drive is/dev/sdb1.

2.2 File System Format

Check the file system format of the USB flash drive and enter the command

Sudo fdisk-l/dev/sdb

2.3 mount a USB flash drive

Take media/usb as the mount point and check whether/media/usb exists. If not, create the sudo mkdir usb folder. confirm that the directory exists and enter:

Sudo mount-t vfat/dev/sdb1/media/usb

2.4 uninstall

Umount/media/usb

Note: the installation is successful and runs when the USB flash drive is pulled out.

Iii. Install Mysql

3.1 unzip the installation package

Tar-xvf mysql-server_5.6.37-1ubuntu14.04_amd64.deb-bundle.tar

  3.2 add execution permission

Chmod + x *. deb

3.3 Installation

3.3.1 install dependency packages

Sudo dpkg-I libaio1_0.3.110-2_amd64.deb

3.3.2 install mysql in sequence

Sudo dpkg-I mysql-common_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I mysql-community-server_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I libmysqlclient18_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I libmysqlclient-dev_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I libmysqld-dev_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I mysql-community-client_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I mysql-client_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I mysql-common_5.6.37-1ubuntu14.04_amd64.deb

Sudo dpkg-I mysql-community-server_5.6.37-1ubuntu14.04_amd64.deb

The root password input box is displayed:

Sudo dpkg-I mysql-server_5.6.37-1ubuntu14.04_amd64.deb

 3.4 execute database scripts(Optional) import business initialization data)

3.4.1 log on to mysql-uroot-p

3.4.2 create database erp;

3.4.3 use the created database use erp;

3.4.4 run the SQL script file source/home/orm/mysql. SQL;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.