MySQL 5.7 multi-instance installation

Source: Internet
Author: User

The server already has MySQL 5.6 running, want to learn MySQL 5.7 new features, found installation 5.7 when various pits, so record under in case forget

installing MySQL 5.7

Groupadd MySQL

Useradd-r-G MySQL MySQL

TAR-XF mysql-5.7.9-linux-glibc2.5-x86_64

Cp-r mysql-5.7.9-linux-glibc2.5-x86_64/opt


Cd/opt

LN-SV mysql-5.7.9-linux-glibc2.5-x86_64/mysql57

CD mysql57/

# # Create Data Catalog

Mkdir-p/data/mysql57

Chown-r mysql.mysql/data/mysql57


CP support-files/my-default.cnf MY.CNF

VI my.cnf #配置下面几项


Basedir =/opt/mysql57

DataDir =/data/mysql57

Port = 3357

server_id = 33571

Socket =/tmp/mysql57.sock



Bin/mysqld--initialize--user=mysql--basedir=/opt/mysql57--datadir=/data/mysql57--defaults-file=/opt/mysql57/ My.cnf


Bin/mysql_ssl_rsa_setup


CP support-files/mysql.server/etc/init.d/mysqld57

vim/etc/init.d/mysqld57


Basedir= '/opt/mysql57 '

Datadir= '/data/mysql57 '


This article is from the "Silent Learning" blog, please be sure to keep this source http://mzs0207.blog.51cto.com/1874062/1712077

MySQL 5.7 multi-instance installation

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.