private void StopMySqlService(object sender, EventArgs e) { MysqlWindowsService service = new MysqlWindowsService(); string error = String.Empty; try { if (!service.StopService()) { error = "Could not stop the service. Try restarting your computer and then running Krakatau EPM again."; } } catch (Exception ex) { error = ex.Message; } if (error.Length > 0) { ShowDiagnosticsDialog(error, "Stopping MySQL Service"); } }
private void RemoveMySqlService(object sender, EventArgs e) { MysqlWindowsService service = new MysqlWindowsService(); string error = String.Empty; try { if (!service.RemoveService()) { error = "Could not remove the service. Check to see that it is still installed using Windows Services."; } } catch (Exception ex) { error = ex.Message; } if (error.Length > 0) { ShowDiagnosticsDialog(error, "Removing MySQL Service"); } }
private void InstallMySqlService(object sender, EventArgs e) { MysqlWindowsService service = new MysqlWindowsService(); string error = String.Empty; try { if (!service.InstallService()) { error = "Could not install the service. Please contact [email protected]."; } } catch (Exception ex) { error = ex.Message; } if (error.Length > 0) { ShowDiagnosticsDialog(error, "Installing MySQL Service"); } }
private void StartMySqlService(object sender, EventArgs e) { MysqlWindowsService service = new MysqlWindowsService(); string error = String.Empty; try { if (!service.StartService()) { error = "The service cannot be started. Is it installed?\n\n" + "Try installing using Diagnotics > MySQL > Install Service."; } } catch (Exception ex) { error = ex.Message; } if (error.Length > 0) { ShowDiagnosticsDialog(error, "Starting MySQL Service"); } }