Home  >  Article  >  Database  >  在Windows的命令行下启动服务_MySQL

在Windows的命令行下启动服务_MySQL

WBOY
WBOYOriginal
2016-06-01 13:06:071307browse

假如你想要启动 mysql 服务。怎么做?

sc start mysql

查看是否成功启动。怎么做?

sc query mysql

如果是 running 就是在运行的意思。

想要关闭这个服务。怎么做?

sc stop mysql

看到是 stop_pending 就是正在停止的意思。

再次查看进程状态。

sc query mysql

发现进程的状态已经变成 stopped 了。就是已经停止的意思。


还有什么办法呢。这么做。

net start mysql

要是想关闭它,怎么做?

net stop mysql

至于如何查看进程的状态。net命令好像不行。那就用 sc query mysql代替。




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn