Home > Database > Mysql Tutorial > 绿色版mysql注册卸载服务方法

绿色版mysql注册卸载服务方法

WBOY
Release: 2016-06-07 16:17:00
Original
1375 people have browsed it

如果直接用绿色版的mysql,则下载后解压,只需对目录下的my.ini文件的basedir(mysql的基本目录)和datadir(mysql数据目录)指定就可以,如下所示。 #Path to installation directory. All paths are usually resolved relative to this. basedir=D:MySQL S

如果直接用绿色版的mysql,则下载后解压,只需对目录下的my.ini文件的basedir(mysql的基本目录)和datadir(mysql数据目录)指定就可以,如下所示。

 

#Path to installation directory. All paths are usually resolved relative to this.
basedir="D:MySQL Server 5.1/"
#Path to the database root
datadir="D:MySQL Server 5.1/Data/"

但是因为免安装,所以不会生成服务,只需通过简单的命令就可以实现:

打开命令窗口切换到mysql的bin目录下。

1.注册服务:

D:MySQL Server 5.1bin>mysqld --install mysql51

回车执行,会提示创建成功,打开服务可以找到刚创建的mysql51服务

2.卸载服务:

D:MySQL Server 5.1bin>mysqld --remove mysql51

Related labels:
source:php.cn
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