Set WshShell = CreateObject("WScript.Shell" ) 'Just Start Apache Server & MySQL Server WshShell.Run """C:\xampp\apache\bin\httpd.exe""", 0, false WshShell.Run """C:\xampp\mysql\bin\mysqld.exe"" --defaults-file=C:\xampp\mysql\bin\my.ini --standalone --console", 0, false 'Stop & Start MySQL Server WshShell.Run """C:\xampp\mysql_stop.bat""", 0, false WshShell.Run """C:\xampp\mysql_start.bat"" --defaults-file=C:\xampp\mysql\bin\my.ini --standalone --console", 0, false Set WshShell = Nothing
Thursday, February 2, 2017
VBScript: How to Automatically Restart MySQL Server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment