Bug #23278 Both installs - no consistency in naming the Windows services
Submitted: 13 Oct 2006 20:42 Modified: 10 Apr 2009 19:04
Reporter: Shawn Green Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S4 (Feature request)
Version:0.6.33 OS:Any
Assigned to: Keith Russell CPU Architecture:Any
Tags: apache, daemon, install, MySQL, names, service, tomcat
Triage: D5 (Feature request)

[13 Oct 2006 20:42] Shawn Green
Description:
By default the services (daemons) created by the Windows installer have the following service names:

executable  - Service name
----------------------------
MySQL server      - MySQL Network MySQL
Apache web server - MySQLNetworkApache
Tomcat web server - Tomcat

Their display names are all alike:
MySQL Network MySQL
MySQL Network Apache
MySQL Network Tomcat

However if you use a command line tool like NET or SC to start and stop your services (as many admins do) you need the actual service name. The service names provided by the installer are neither similar nor consistent with their display names

How to repeat:
Use the windows utility SC and check the output;

shell> sc query
<... snip ...>
SERVICE_NAME: MySQL Network MySQL
DISPLAY_NAME: MySQL Network MySQL
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

SERVICE_NAME: MySQLNetworkApache
DISPLAY_NAME: MySQL Network Apache
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

SERVICE_NAME: Tomcat
DISPLAY_NAME: MySQL Network Tomcat
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

Suggested fix:
Reset the installer to create the following service accounts:

executable  - Service name
----------------------------
MySQL server      - MySQLNetwork_MySQL
Apache web server - MySQLNetwork_Apache
Tomcat web server - MySQLNetwork_Tomcat

This way, the names are both consistent and unique to any other Apache, Tomcat, or MySQL installation that may already be on the machine.
[10 Apr 2009 17:55] Keith Russell
This is pretty old.  Is it still relative?