一台机器多台mysql_一台机器上的多个MySQL实例

bd96500e110b49cbb3cd949968f18be7.png

How to configure multiple MySQL instances on a single machine? There are a lot of information on the web, but they are not very useful.

Instead of generic information that can only be understood by a mind with years of MySQL administrative experience, I am looking for a tutorial that guides me from begin to end. I would appreciate answers or pointers that are self-sufficient, i.e., don't require a lot of knowledge from the user's part, instead of obscure references.

解决方案

OK, this question should be closed as not-programming-related, this is really a question for the upcoming "sister" site but I'm going to try and answer it anyway. Now I've never used MySQL and someone can probably do a better answer.

Lets start with a google search

(5 mins later... decided to take the plunge after only skim reading a couple of results)

download + install mysql essential package (mysql-essential-5.1.30-win32.msi)

run configuration wizard

run configuration wizard again (modifying db path, port no)

take a look at my.ini (and the backup)

figure out that I need to make a copy of the data dir and merge ini with backup ini file and didn't need to run the config wizard twice. Should have just edited the INI to begin with (but that would require reading the manual.. too much work! Ini file is pretty well documented anyway though)

merge ini files, make service name modifications

run commands: mysqld --install mysql1, mysqld --install mysql2, net start mysql1, net start mysql2

20 mins, done.

Now we have step by step instructions for running multiple MySQL instances on a single machine, which will probably turn up as the first result in google next time anyone searches for it ;)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值