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