Install Multiple mysql services on one host and multiple mysql instances on one host

Source: Internet
Author: User

Install Multiple mysql services on one host and multiple mysql instances on one host

1. mysql installation (omitted)

2. Stop the mysql Service

3. Copy all mysql files to another directory ()




4. Open the my. ini file under the copy directory to modify

[Client]
Port = 3307 # The default port of the first database is 3306. You need to enable another port here.
# The TCP/IP Port the MySQL Server will listen on
Port = 3307
# Path to installation directory. All paths are usually resolved relative to this.
Basedir = "D: \ secondmysql \ MySQL Server 5.5 \" # basedir
# Path to the database root
Datadir = "D: \ secondmysql \ MySQL Server 5.5 \ data \" # second database datadir



5. Run cmd as the administrator to create the startup service.

Mysqld install MySQL2 -- defaults-file = "D: \ secondmysql \ MySQL Server 5.5 \ my. ini"

6. View and open the service


7. Connection


During the connection process


The default password is null.

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.