Windows下MySQL多实例运作
Windows下MySQL多实例运行 关键字:Windows下MySQL多实例运行 阅读前注意事项: 1、有的版本的data目录不直接放在mysql安装目录下,有可能在:C:\ProgramData\MySQL\MySQL Server 5.1\data(不管路径在哪里 指定正确的路径即可) 2、操作步骤:复制MySQL安装
Windows下MySQL多实例运行关键字:Windows下MySQL多实例运行
阅读前注意事项:
1、有的版本的data目录不直接放在mysql安装目录下,有可能在:C:\ProgramData\MySQL\MySQL Server 5.1\data(不管路径在哪里 指定正确的路径即可)
2、操作步骤:复制MySQL安装目录-->修改my.ini中的端口2处、安装目录和数据目录---->命令安装MySQL windows服务--->修改注册表---->启动新实例的window服务---->正常使用
正文篇:
1.正常安装Windows版的MySQL,例如安装在d:\MySQL文件夹里;
2.按照常规配置好MySQL;
3.复制备份安装好的文件夹,命名为“MySQL_3307"; 删除 data目录下的文件其他文件夹,只剩 test和mysql文件夹;
4.修改“d:\MySQL_3307" 下的my.ini 端口为3307
Java代码
[client]
port=3307
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3307
程序路径改为 d:/MySQL_3307
Java代码
[mysqld]
# 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:/MySQL_3307"
#Path to the database root
datadir="d:/MySQL_3307/Data/"
5.在cmd命令行模式下,进入第2个MySQL_3307的\bin文件夹。
执行mysqld install MySQL_3307命令。作用是为Mysql安装一个服务,服务名是MySQL_3307,
6.完毕后,在运行里运行REGEDIT,打开WINDOWS注册表编辑器,
在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL_3307打开,
修改下面的ImagePath数值: "D:\MySQL_3307\bin\mysqld" --defaults-file="D:\MySQL_3307\my.ini" MySQL_3307
确定,退出注册表编辑器。
7.然后就可以在服务管理里正常启动MySQL_3307服务。
注:若想重命名mysql服务名称,
1.进入services.msc关闭MySQL服务
2.C:\>sc delete MySQL “MySQL”为服务名称
3.重复上面的第6、7步即可
删除服务后,进入到注册表里,看旧的mysql节点是否删除。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solve the problem of third-party interface returning 403 in Node.js environment. When we use Node.js to call third-party interfaces, we sometimes encounter an error of 403 from the interface returning 403...

The page is blank after PHP connects to MySQL, and the reason why die() function fails. When learning the connection between PHP and MySQL database, you often encounter some confusing things...

Choosing the right Bitcoin market viewing software is crucial, it can help investors grasp market conditions in real time and make smarter investment decisions. This article will guide you how to make a choice, covering personal needs assessment (trading frequency, analysis depth, information needs and budget), software type selection (exchange interface, professional software, market website/APP), core functional considerations (data reliability, chart tools, custom settings, community communication and platform compatibility), and direction recommendations (maturity financial platform, cryptocurrency aggregation platform, community recommendation software). Finally, it is recommended that you try a few more software and compare it to choose the tool that best suits your needs. Please remember that software is only an auxiliary tool, and you must be cautious when investing at your own risk.

The OKX trading platform can be downloaded through mobile devices (Android and iOS) and computers (Windows and macOS). 1. Android users can download it from the official website or Google Play, and they need to pay attention to security settings. 2. iOS users can download it through the App Store or follow the official announcement to obtain other methods. 3. Computer users can download the client of the corresponding system from the official website. Always make sure to use official channels when downloading, and register, log in and security settings after installation.

Many website developers face the problem of integrating Node.js or Python services under the LAMP architecture: the existing LAMP (Linux Apache MySQL PHP) architecture website needs...

Detailed explanation of the problem of deducting balances in combination with PHP optimistic locks and transactions in this article will analyze in detail a balance deduction using PHP, optimistic locks and database transactions, only...

This article introduces the importance and usage of Ethereum free disk-steering software. Faced with the volatile cryptocurrency market, a useful disc-stepping software can help investors monitor key data such as Ethereum prices and trading volume in real time, and seize investment opportunities in a timely manner. The article recommends several free software with good reputation, such as CoinMarketCap, CoinGecko, TradingView, Blockfolio and the exchange's own App, and guides investors how to choose the software that suits them from five aspects: data accuracy, feature richness, ease of use, platform compatibility and security. However, it should be noted that cryptocurrency investment is relatively high and you need to operate with caution.

The problem of comparing and synchronizing BeyondCompare files: Case sensitivity failure when using Beyond...
