Multiple MySQL Solutions

Source: Internet
Author: User

Sometimes work needs to be the same, need multiple MySQL database, and the default open service is C disk My.ini in Windows

1. Set the My.ini you want to use
2. Close the current MySQL database service
3. Copy the My.ini to the C:\WINDOWSThe code below

CdMySQL5.1Required Directories
SetMycd=%Cd:\=/%
Echo[Client]>My.Ini
Echo Port=3306>>My.Ini
EchoDefault-Character-Set=Utf8>>My.Ini
Echo[Mysqld]>>My.Ini
Echo Port=320W>>My.Ini
Echo Basedir="%mycd%/">>My.Ini
echo datadir= "%mycd%/data/" >>< Span class= "KWD" >my. INI
copy my. INI + my.my. INI /y
copy my.< Span class= "PLN" >ini c:\windows\ /y
Span class= "PLN" >bin\mysqld.--install lydata

net start Lydata

My.ini Example

Basedir="d:/baishez/web/mysql5.1"//corresponding location
DataDir="d:/baishez/web/mysql5.1"//date corresponding position

Original from

http://hk520590.blog.163.com/blog/static/106001051201491885019816/

Multiple MySQL Solutions

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.