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