Exemplo n.º 1
0
        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");
            }
        }
Exemplo n.º 2
0
        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");
            }
        }
Exemplo n.º 3
0
        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");
            }
        }
Exemplo n.º 4
0
        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");
            }
        }