Steps for installing MySQL in Linux

Source: Internet
Author: User
This article describes how to install MySql using officially compiled binary files in linux and how to install screenshots. this installation method is fast and easy to install! Steps for installing MySQL in Linux

This article describes how to install MySql using officially compiled binary files in linux and how to install screenshots. this installation method is fast and easy to install!

The following is a record in my work. we will introduce the installation process and screenshot of installing MySql using officially compiled binary files in linux. this installation method is fast and the installation steps are simple!

If you want to install MySql quickly, follow these steps :)!

1. download the binary installation package for mysql linux:

Address: http://dev.mysql.com/download...

Here I rename the installation package to: tingyun-mysql-5.6.22.tar.gz

Note: You can choose not to rename the file as needed.

2. unzip the installation package:

Decompress the installation package at the desired location: run the following command:

cd /opt tar –xPf tingyun-mysql-5.6.22.tar.gz

Screenshots are as follows:

5. start mysql

Go to the init. d Directory and run the following command:

cd /etc/init.d/  mysqld restart

If you do not want to restart the instance, you can manually start the instance and run the following command:

service mysqld start

You can also directly execute the following command in the mysql Directory:

/etc/init.d/mysqld restart

Screenshots are as follows:

9. test mysql after installation:

(1) Check whether mysql has been started:

You can use either of the following three commands:

netstat -tl | grep mysql ps -aux | grep mysqld netstat -lntup|grep 3306

The mysql-related process is printed on the screen and the following similar content is displayed:

cp 0 0 *:mysql *:* LISTEN

Mysql has been started successfully!

(2) to use mysql, run the following command to access mysql:

mysql -u root -p

(3) view the version:

select version();

So far, mysql has been installed and tested successfully, so you can use it with confidence :)

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.