1 Downloads
Download website
Choose the Community Free Edition
Platform Linux Genitic
Version 64-bit, my virtual machine is 64-bit
2 installation
- Upload the compressed package and extract it to the appropriate location, my directory Basedir:/home/mysql/mysql-5.7.12, which is placed in the user MySQL directory
TAR-ZXVF mysql-5.7.12-linux-glibc2.5-x86_64.tar.gz MV MYSQL-5.7.12-LINUX-GLIBC2.5-X86_64/HOME/MYSQLMV Mysql-5.7.12-linux-glibc2.5-x86_64 mysql-5.7.12
- Create Data dir
- To execute the installation command, you need to mysql-5.7.12 the root directory, the picture is the installation Success screen
3 start
- Pre-launch, edit/mysql-5.7.12/support-files/mysql.server, set corresponding Basedir and DataDir
Vim Mysql.server
- Copy the configuration file under the/mysql-5.7.12/support-files folder
Cp-a my-default.cnf/etc/my.cnf cp-a mysql.server/etc/init.d/mysqld
- Start the database, under the/support-files folder
./mysql.server Start
4 other
- Missing copy configuration file Step Error: Starting MySQL. error! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
- You need to close the database before shutting down the virtual machine
./mysql.server Stop
CentOS 7.0 Installation mysql-5.7.12 (i)