CentOS 7.0 Installation mysql-5.7.12 (i)

Source: Internet
Author: User

1 Downloads

Download website

Choose the Community Free Edition

Platform Linux Genitic

Version 64-bit, my virtual machine is 64-bit


2 installation
    1. 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

    2. Create Data dir

    3. To execute the installation command, you need to mysql-5.7.12 the root directory, the picture is the installation Success screen


3 start
    1. Pre-launch, edit/mysql-5.7.12/support-files/mysql.server, set corresponding Basedir and DataDir
      Vim Mysql.server
    2. 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
    3. Start the database, under the/support-files folder
      ./mysql.server Start  

4 other
    1. Missing copy configuration file Step Error: Starting MySQL. error! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
    2. You need to close the database before shutting down the virtual machine
      ./mysql.server Stop

CentOS 7.0 Installation mysql-5.7.12 (i)

Related Article

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.