Old:Bugs 3.5-Apollo: Server Start bat: Difference between revisions

Punctuation and grammatical changes.
(Moved to Category: Archive)
(Punctuation and grammatical changes.)
Line 2: Line 2:
'''''Server_Start.bat'''''
'''''Server_Start.bat'''''


== Bug fix reinstate %2 ==
== Bug fix: reinstate %2 ==
File: '''Server_Start.bat'''<br>
File: '''Server_Start.bat'''<br>
Location: '''*\Uniform Server'''
Location: '''*\Uniform Server'''


'''Problem:''' Parameter %2 not checked preventing disk_start.vbs running correctly. Redundant %3 parameter!
'''Problem:''' Parameter %2 is not checked, preventing disk_start.vbs running correctly. Redundant %3 parameter!
'''Solution:''' Reinstate %2 checking and use %3 to open a command line prompt.
'''Solution:''' Reinstate %2 checking and use %3 to open a command line prompt.


The third parameter %3 (Console) seems to be redundant no idea what it’s original purpose was. When run it just leaves the command prompt open, which is of little use.
The third parameter %3 (Console) seems to be redundant; no idea what its original purpose was. When run, it just leaves the command prompt open, which is of little use.


Proposal let this open a command prompt accessing the MySQL bin folder will allow command line control of the MySQL server using mysql.exe and mysqladmin.exe. I have taken the opportunity to add comments, cleaned-up the script and changed order of commands slightly.
Proposal: let this open a command prompt accessing the MySQL bin folder will allow command line control of the MySQL server using mysql.exe and mysqladmin.exe. I have taken the opportunity to add comments, cleaned-up the script and changed order of commands slightly.


'''''Enhancement'':''' Enclose batch commands between '''pushd %~dp0''' and '''popd''' forces current working directory to the folder a batch file is located in. On completion restores original calling working directory. Allows remote processes to start servers.
'''''Enhancement'':''' Enclose batch commands between '''pushd %~dp0''' and '''popd''' forces current working directory to the folder a batch file is located in. On completion restores original calling working directory. Allows remote processes to start servers.