instal mysql - mysql-installservice.bat

Problems with the Windows version of XAMPP, questions, comments, and anything related.

instal mysql - mysql-installservice.bat

Postby mp1977 » 08. November 2006 16:17

One suggestion for mysql-installservice.bat.
Instead of lines:
Code: Select all
:WinNT
if exist %windir%\my.ini GOTO CopyINI
if exist c:\my.cnf GOTO CopyCNF
if not exist %windir%\my.ini GOTO MainNT
if not exist c:\my.cnf GOTO MainNT

:CopyINI
echo Safe the %windir%\my.ini as %windir%\my.ini.old!
copy %windir%\my.ini /-y %windir%\my.ini.old
del %windir%\my.ini
GOTO WinNT

:CopyCNF
echo Safe the c:\my.cnf as c:\my.cnf.old!
copy c:\my.cnf /-y c:\my.cnf.old
del c:\my.cnf
GOTO WinNT

:MainNT
echo Installing MySQL as an Service
copy "%cd%\bin\my.cnf" /-y %windir%\my.ini
bin\mysqld-nt --install mysql --defaults-file="%cd%\bin\my.cnf"
echo Try to start the MySQL deamon as service ...
net start MySQL


use just this:

Code: Select all
:MainNT
echo Installing MySQL as an Service
bin\mysqld-nt --install mysql --defaults-file="%cd%\bin\my.cnf"
echo Try to start the MySQL deamon as service ...
net start MySQL


So configuration file stays at xampp directory structure.
mp1977
 
Posts: 1
Joined: 08. November 2006 16:08

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 63 guests