Install two MySQL5.6.35 databases under win10

Install two MySQL5.6.35 databases under win10

Record the installation of two MySQL5.6.35 databases under win10, as follows

environment:
OS:window10
DB:MYSQL5.6.35 free installation version

1. Install the first MySQL normally (see my previous blog)

2. In Management -> Services and Applications -> Services, stop the first MySQL service

3. Copy all the directories and files in the first database directory (my installation directory is: C:\software\mysql-5.6.35-winx64) to another path. I copied it to C:\software and renamed the file to MySQL3307.

4. Change the my-default.ini file under the copied database file and change the port number to 3307 (customized, check whether the port is occupied first)

[client]
port=3307
default-character-set=utf8

[mysqld] 
# Set to the installation directory of MYSQL basedir=C:/software/MySQL3307/MySQL3307
# Set to MYSQL data directory datadir=C:/software/MySQL3307/MySQL3307/data
port=3307
character_set_server=utf8

default-storage-engine=MYISAM
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

5. Create a startup service, open a command prompt with administrator privileges (do not open it with window+R –>cmd, otherwise you will not be able to install it later), cd into the bin folder of the second database directory, and run the following command

mysqld install MySQL3307 --defaults-file="C:\software\MySQL3307\MySQL3307\my-default.ini"

If the installation is successful, it will prompt

這里寫圖片描述
這里寫圖片描述

6. Modify the registry

HKEY_LOCAL_MACHINE–>SYSTEM–>CurrentControlSet–>Services
Find the MySQL3307 just created and modify the ImagePath to the following

":C:\software\MySQL3307\MySQL3307\bin\mysqld" --defaults-file="E:\MySQL\mysql_base\ini\my.ini" MySQL3307

7. Start the service

In Management -> Services and Applications -> Services, start both services.


8. Testing

Connect to the newly created database through Navicat for MySQL. The password is the same as the first database. Test OK.

這里寫圖片描述

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Install MySQL5.5 database in CentOS7 environment
  • Centos7 mysql database installation and configuration tutorial
  • Detailed tutorial on installing MySQL database in Linux environment
  • Detailed tutorial on installing MySQL 8.0.20 database on CentOS 7
  • How to install MySQL database on Ubuntu
  • Detailed tutorial on installing different (two) versions of MySQL database on Windows
  • Windows Server 2016 MySQL database installation and configuration detailed installation tutorial
  • Introduction to MySQL database installation method and graphical management tool

<<:  Docker nginx example method to deploy multiple projects

>>:  Detailed explanation of node.js installation and HbuilderX configuration

Recommend

Enabling and configuring MySQL slow query log

Introduction MySQL slow query log is an important...

Detailed explanation of Vue's custom event content distribution

1. This is a bit complicated to understand, I hop...

One-click installation of MySQL 5.7 and password policy modification method

1. One-click installation of Mysql script [root@u...

Solution to the problem of repeated pop-up of Element's Message pop-up window

Table of contents 1. Use 2. Solve the problem of ...

Keepalived implements Nginx load balancing and high availability sample code

Chapter 1: Introduction to keepalived The purpose...

Causes and solutions for cross-domain issues in Ajax requests

Table of contents 1. How is cross-domain formed? ...

Where is mysql data stored?

MySQL database storage location: 1. If MySQL uses...

Vue implements the method of displaying percentage of echart pie chart legend

This article mainly introduces the pie chart data...

Complete steps to enable gzip compression in nginx

Table of contents Preface 1. Configure gzip compr...

Detailed explanation of CSS image splicing technology (sprite image)

CSS image splicing technology 1. Image stitching ...

What do CN2, GIA, CIA, BGP and IPLC mean?

What is CN2 line? CN2 stands for China Telecom Ne...

6 Uncommon HTML Tags

First: <abbr> or <acronym> These two s...

Detailed explanation of VUE responsiveness principle

Table of contents 1. Responsive principle foundat...

Steps to create a WEBSERVER using NODE.JS

Table of contents What is nodejs Install NodeJS H...