`

安装和卸载Mysql的windows系统服务

    博客分类:
  • java
阅读更多


安装mysql的windows系统服务: ${mysql.home}\bin\mysqld-nt --install;
卸载mysql的windows系统服务: ${mysql.home}\bin\mysqld-nt --remove

绿色心情 大大介绍的更好的方法:

在命令行使用sc命令:
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc <server> [command] [service name] <option1> <option2>...

The option <server> has the form "\\ServerName"
Further help on commands can be obtained by typing: "sc [command]"
Commands:
query-----------Queries the status for a service, or
enumerates the status for types of services.
queryex---------Queries the extended status for a service, or
enumerates the status for types of services.
start-----------Starts a service.
pause-----------Sends a PAUSE control request to a service.
interrogate-----Sends an INTERROGATE control request to a service.
continue--------Sends a CONTINUE control request to a service.
stop------------Sends a STOP request to a service.
config----------Changes the configuration of a service (persistant).
description-----Changes the description of a service.
failure---------Changes the actions taken by a service upon failure.
qc--------------Queries the configuration information for a service.
qdescription----Queries the description for a service.
qfailure--------Queries the actions taken by a service upon failure.
delete----------Deletes a service (from the registry).
create----------Creates a service. (adds it to the registry).
control---------Sends a control to a service.
sdshow----------Displays a service's security descriptor.
sdset-----------Sets a service's security descriptor.
GetDisplayName--Gets the DisplayName for a service.
GetKeyName------Gets the ServiceKeyName for a service.
EnumDepend------Enumerates Service Dependencies.

The following commands don't require a service name:
sc <server> <command> <option>
boot------------(ok | bad) Indicates whether the last boot should
be saved as the last-known-good boot configuration
Lock------------Locks the Service Database
QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
sc start MyService

分享到:
评论

相关推荐

    一键彻底卸载 MySQL 脚本针对 Windows 系统的脚本工具提供简便快捷的方法来完全卸载 MySQL 数据

    适用范围:适用于 Windows 系统上的 MySQL 数据库的彻底卸载,兼容各种 MySQL 版本和安装配置。 通过一键彻底卸载 MySQL 脚本+,用户可以方便地卸载 MySQL 并确保数据库和相关文件完全删除,从而提供更好的系统清理...

    MySQL安装卸载-Windows.docx

    MySQL在Windows下的安装卸载。

    彻底卸载MYSQL

    彻底卸载MySQL 先停掉WINDOWS里的MySQL服务; 再到控制面板里的增加删除程序内进行删除,这并没有完整地删除了MySQL;

    windows下安装、卸载mysql服务的方法(mysql 5.6 zip解压版安装教程)

    主要介绍了windows下安装、卸载mysql服务的方法(zip解压版安装),需要的朋友可以参考下

    MySQL5.5在Windows下的安装卸载教程.docx

    MySQL5.5在Windows下的安装配置卸载教程(MySQL获取地址:https://www.mysql.com/)

    windows完全卸载MySQL.txt

    windows完全卸载MySQL,卸载后可重新安装,亲测可行,已操作多次 win7\win10均可用可操作性

    MySQL数据库5.5版本(Windows64带安装/卸载指导)

    MySQL 是最流行的关系型数据库管理系统,在WEB应用方面 MySQL 是最好的RDBMS(Relational Database Management System:关系数据库管理系统)应用软件之一。 使用指导请看:...

    Windows 10系统下彻底删除卸载MySQL的方法教程

    本文介绍的是关于在Windows10系统下,如何彻底删除卸载MySQL的方法教程,分享出来供大家参考学习,下面来一起看看详细的介绍吧。 方法如下: 1》停止mysql服务 开始-》所有应用-》Windows管理工具-》服务,将MySQL...

    Windows系统中完全卸载MySQL数据库实现重装mysql

    一、在控制面板,卸载MySQL的所有组件 控制面板——》所有控制面板项——》程序和功能,卸载所有和MySQL有关的程序 二、找到你的MysQL安装路径,看还有没有和MySQL有关的文件夹,全删 如果安装在C盘,检查一下C:\...

    Mysql_8.0安装与卸载教程+navicat12通用版安装教程

    Mysql_8.0安装教程(Windows与Mac版)+Mysql_8.0卸载教程(Mac版)+navicat12通用版安装教程,适用于需要配置mysql环境人群,需要安装包的可私信我

    数据库的安装与卸载.zip

    数据库的安装分为两个部分: 文件解压和复制过程; 安装好之后对MySql服务器的配置过程。 2.数据库的安装 2.1 打开下载的mysql安装文件,双击解压缩,运行“mysql-5.5.40-win64.msi”(本人电脑安装的是这个版本,有需要的...

    MYSQL 卸载重装.doc

    ① 停止MySQL服务 开始→所有应用→Windows管理工具→服务,将MySQL服务停止(如果没有就不管)。 ② 卸载mysql server 控制面板→所有控制面板项→程序和功能,将mysql server卸载掉。

    Mysql完全卸载教程

    彻底卸载MySQL: 一、在控制面板中卸载mysql软件 二、卸载过后删除C:\Program Files (x86)\MySQL该目录下剩余了所有文件,把mysql文件夹也删了 三、windows+R运行“regedit”文件,打开注册表 四、删除注册表:HKEY_...

    MySQL安装与卸载.pdf

    在windows上安装mysql的详细步骤和配置详解,提供的资料适合正在学习mysql的朋友,对于mysql的安装我想提醒所有朋友,如果没有十足的把握千万不要擅自安装,因为安装mysql你可能只能一次机会,安装失败的代价是非常巨大的

    超好用的软件卸载工具(windows版本)

    可以很方便的卸载电脑上的流氓软件。 绿色版本免安装,下载之后就可以使用。

    MySQL5.7完全卸载步骤详解

    主要介绍完全卸载mysql的具体步骤:包括停止服务、卸载相关程序、删除注册表等等1、停止MySQL服务2、卸载MySQL相关的程序 step1:本次是win10系统环境;左下角点击:开始–&gt;所有应用–&gt;弹出最近所有应用程序,选择...

    mysql 服务完全卸载技巧

    在你从电脑里卸载旧的MYSQL数据库服务时,首先先在WINDOWS服务里停掉MYSQL的服务。再到控制面板里的增加删除程序内进行删除,但是你并不能完整的把MYSQL服务删除,那么就要在注册表里清除你的MYSQL服务。 首先要点击...

Global site tag (gtag.js) - Google Analytics