window to create a MySQL multi-instance

Source: Internet
Author: User

Download Open source MySQL, depending on the version of the selected response

https://dev.mysql.com/downloads/mysql/

Installation

If you encounter the following error

Installation Error MSVCP120.dll and MSVCR120.dll

installation vcredist_13x64

Configuration database files

Vim My.ini

[MySQL]

Default-character-set=utf8

[Mysqld]

Port = 3306

Basedir=d:\mysql-5.7.18-winx64

Datadir=d:\mysql-5.7.18-winx64\data

max_connections=200

Character-set-server=utf8

Default-storage-engine=innodb



Register, start the database


mysqld install MySQL--defaults-file= "D:\mysql-5.7.18-winx64\my.ini"

Mysqld--initialize

net start MySQL


Check 3306 port, link test


Instance N

Copy the above MySQL folder to a different location

Change My.ini Internal, three file configurations

Port = 3307

Basedir=e:\mysql-5.7.18-winx64

Datadir=e:\mysql-5.7.18-winx64\data

Mysqld Install mysql_test --defaults-file= "E:\mysql-5.7.18-winx64\my.ini"

Mysqld--initialize

To change the registration form

Modify Hkey_local_machine-->system-->currentcontrolset-->services Find the mysql_test you just created, and change the ImagePath to the following ":" E:\ Mysql-5.7.18-winx64\bin\mysqld "--defaults-file=" E:\mysql-5.7.18-winx64\my.ini "mysql_testnet start mysql_test

Check Port 3307

window to create a MySQL multi-instance

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.