MySQL Series b------MySQL installation preparation

Source: Internet
Author: User
Tags mysql commands

1 , add groups, and users

# Groupadd MySQL

# useradd-g MySQL MySQL

2 , creating the installation directory

# mkdir MySQL

3 , upload MySQL installation package (I usually use Securefx)

4 , unzip to the/mysql directory

# Cd/mysql

# chmod +x mysql-5.6.24-linux-glibc2.5-x86_64.tar.gz

# TAR-XVF Mysql-5.6.24-linux-glibc2.5-x86_64.tar.gz

5 , change the extracted directory name

# MV Mysql-5.6.24-linux-glibc2.5-x86_64mysql

6 , change directory owner

# Chown-r Mysql:mysql/mysql/mysql.

7 , change environment variables (so that you can use MySQL commands directly in the system)

#vi/etc/profile

Path= $PATH

Export PATH

Path= $PATH:/mysql/mysql/bin

Export PATH

8 , the configuration file is in effect

#source/etc/profile

This article is from the "Technical Bo" blog, please be sure to keep this source http://hostman.blog.51cto.com/6303208/1673486

MySQL Series b------MySQL installation preparation

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.