1、打开cmd,切换到mysql的bin目录下 2、 D:Program FilesMySQL5.1in>mysqld.exe -installService successfully installed.