mysql教程

超轻量级php框架startmvc

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

更新时间:2020-04-24 11:55:02 作者:startmvc
#Pathtoinstallationdirectory.Allpathsareusuallyresolvedrelativetothis.basedir="D:\MySQLServer5.1/"#Pathtothedatabaseroot

#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.1\bin>mysqld --install mysql51

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

2.卸载服务:

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