频道直达 - 专题 - 新闻 - 技巧 - 组网 - 开发 - 安全 - web编程 - 图像 - 操作系统 - 数据库 - 教育 - 旅游 - 健康 - 时尚 - 驱动 - 软件 - 游戏 - 多媒体 - ERP - 讨论组

安装和卸载MySQL的Windows系统服务 (1)

来源:互联网 作者:2 出处:巧巧读书 2007-10-05 进入讨论组
下一页 1 2 
    

安装mysqlwindows系统服务: ${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
转 载:http://www.qqread.com/mysql/u283080.html 更多文章 更多内容请看Windows操作系统安装系统优化大全系统安全设置专题,或进入讨论组讨论。
下一页 1 2 
收藏此文】【 】【打印】【关闭
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
巧巧读书宗旨
相关专题
讨论组问题推荐
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
Photoshop教 程照片处理 照片制作 PS快捷键 抠图
计 算 机 故 障XP系统修复
艺 术 与 设 计设计 流媒体 设计欣赏 边框
计 算 机 安 全ARP
站内频道文章精选
巧巧电脑频道编辑信箱  告诉我们您想看的专题或文章