01. Download the installation package = https://dev.mysql.com/downloads/mysql/
02, upload to Linux system, I use the drop cloud Server installed in the Home/dc2-user directory
03, decompression = TAR-ZXF mysql-5.7.20-linux-glibc2.12-x86_64.tar.gz
04, cut to User directory = = mv Mysql/home/dc2-user/mysql
05, go to mysql directory = Cd/home/dc2-user/mysql
06, create data directory and log directory = = mkdir data = mkdir logs
07. Create configuration file = Vim my.conf
08, write Content
[Mysqld]
User=dc2-user
port=3306
Socket=/home/dc2-user/mysql/mysql.sock
Pid-file=/home/dc2-user/mysql/mysql.pid
Basedir=/home/dc2-user/mysql
Datadir=/home/dc2-user/mysql/data
Log-error=/home/dc2-user/mysql/logs/mysql_error.log
09. Install MySQL = /bin/mysqld--initialize--user=dc2-user--basedir=/home/dc2-user/mysql--datadir= /dc2-user/mysql/data
10, may be missing libaio.0.1 download and upload of Linux =
One by one, http://mirror.centos.org/centos/7/os/x86_64/Packages/libaio-0.3.109-13.el7.x86_64.rpm
12, due to lack of root privileges, borrow sudo command = + sudo RPM-IVH package name
13, execute again 09
14. Start with config file ./bin/mysqld_safe--default-file=my.conf &
15. Log in to + = /bin/mysql-h 127.0.0.1-uroot-p
16, if need to be outside the network access, need to configure the Drip cloud Firewall policy, open 3306 port
MySQL 5.7.202 binary packages installed without root, drip cloud server