Install multiple MySQL services on a single host

Source: Internet
Author: User

1.mysql installation (omitted)

2. Stop the MySQL service

3. Copy all MySQL files to another directory ()




4. Open the My.ini file modification under the copy directory

[Client]
port=3307#第一个数据库的默认端口是3306 need to enable a different port here
# The TCP/IP Port the MySQL Server would listen on
port=3307
# Path to installation directory. All paths is 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\"#第二个数据库datadir



5. Administrator run cmd create start service

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

6. View the service and open


7. Connect


May occur during the connection process


The default password is empty.

Install multiple MySQL services on a single host

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.