Home > Database > Mysql Tutorial > MySQL开机自动启动的设置方法

MySQL开机自动启动的设置方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:52:52
Original
1976 people have browsed it

在windows中一般情况下mysql安装好之后就是开机自动启动不需要设置,但是如果是通过yum安装MySQL后,默认开机时不会自动启动,需要手动设置MySQL让它开机自启动。

首先通过chkconfig命令看看MySQL在不在可管理的列表中,命令是:

chkconfig --list如果列表中没有mysqld这个,需要先用这个命令添加:

chkconfig add mysqld

然后用这个命令设置开机启动:

chkconfig mysqld on

最后确认一下是否设置成功


如果windows下的mysql也需要每次点击启动的朋友我们可参考下面方法


1.打开命令行窗口(CMD)
2.切换到mysql目录下,例如:d:xamppmysqlbin
3.输入mysqld-nt   --install,回车
4.系统提示(Service   successfully   installed.)   //可省略
5.打开[控制面板-管理工具-服务]     //可省略
6.查看服务 "MySql "的启动类型为自动即可     //可省略

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template