Bug #67369 Unable to configure service
Submitted: 24 Oct 2012 20:30 Modified: 1 Sep 2015 6:11
Reporter: André Slepetys Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL for Windows: Installer Severity:S1 (Critical)
Version:5.5.28 OS:Windows (XP)
Assigned to: CPU Architecture:Any
Tags: installer, service

[24 Oct 2012 20:30] André Slepetys
Description:
When I try to install MySQL using the windows installer, the server configuration fails with the following messages:

mysql-server-5.5-win32:6 - Looking for valid template
mysql-server-5.5-win32:12 - Found valid template.
mysql-server-5.5-win32:18 - Attempting to process template.
mysql-server-5.5-win32:25 - Processed template.
mysql-server-5.5-win32:31 - Attempting to configure service.
mysql-server-5.5-win32:37 - Configured service.
mysql-server-5.5-win32:43 - Attempting to start service.
mysql-server-5.5-win32:100 - Unable to configure service.
mysql-server-5.5-win32:100 - Product configuration controller finished configuration.

I can see in services.msc that the service is created. It doesn't start, however.

How to repeat:
I have just recently installed Windows XP with SP3 and all updates and some development tools.

When installing MySQL, it doesn't matter which options I choose, it always fails in the configuration step if I am installing the server (using "Standard System Account" for the service -- if I try to use my own user account it says "The user doesn't have the minimum rights required to start the service.").

I'm setting the root password as "root" and it doesn't matter whether I add any other user accounts or not.

Suggested fix:
I've tried fixes for similar bugs in other versions of the installer. None of them worked.
[24 Oct 2012 20:43] André Slepetys
If I keep clicking on "Try again" and going through the configuration process over and over in the hope that it will eventually succeed with different options, the installer eventually hangs with a gray page where the options should appear, and clicking on either "back" or "next" gives an out-of-range exception:

Consulte o final desta mensagem para obter detalhes sobre como chamar a 
depuração just-in-time (JIT) em vez desta caixa de diálogo.

************** Texto de Exceção **************
System.ArgumentOutOfRangeException: O índice 0 está fora do intervalo.
Nome do parâmetro: index
   em System.Windows.Forms.Control.ControlCollection.get_Item(Int32 index)
   em WexInstaller.InstallWizardControl.get_CurrentPanel()
   em WexInstaller.InstallWizardControl.Next_Click(Object sender, EventArgs e)
   em System.Windows.Forms.Control.OnClick(EventArgs e)
   em System.Windows.Forms.Button.OnClick(EventArgs e)
   em System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.ButtonBase.WndProc(Message& m)
   em System.Windows.Forms.Button.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Assemblies Carregados **************
mscorlib
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.269 (RTMGDR.030319-2600)
    Base de Código: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WexInstaller
    Versão do Assembly: 1.1.4.0
    Versão do Win32: 1.1.4.0
    Base de Código: file:///C:/Arquivos%20de%20programas/MySQL/MySQL%20Installer/MySQLInstaller.exe
----------------------------------------
System
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.269 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.278 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.282 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
WexInstaller.Core
    Versão do Assembly: 1.1.4.0
    Versão do Win32: 1.1.4.0
    Base de Código: file:///C:/Arquivos%20de%20programas/MySQL/MySQL%20Installer/WexInstaller.Core.DLL
----------------------------------------
System.Configuration
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.DirectoryServices
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
----------------------------------------
System.Xml
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.233 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
sq0zynkt
    Versão do Assembly: 1.1.4.0
    Versão do Win32: 4.0.30319.269 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
hncqphov
    Versão do Assembly: 1.1.4.0
    Versão do Win32: 4.0.30319.269 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
StandardPlugins
    Versão do Assembly: 1.1.4.0
    Versão do Win32: 1.1.4.0
    Base de Código: file:///C:/Arquivos%20de%20programas/MySQL/MySQL%20Installer/StandardPlugins.DLL
----------------------------------------
System.ServiceProcess
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
4z5ll2kj
    Versão do Assembly: 1.1.4.0
    Versão do Win32: 4.0.30319.269 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
mscorlib.resources
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
Accessibility
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 built by: RTMRel
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.VisualBasic
    Versão do Assembly: 10.0.0.0
    Versão do Win32: 10.0.30319.1 built by: RTMRel
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Core
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.233 built by: RTMGDR
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Management
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.ServiceProcess.resources
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess.resources/v4.0_4.0.0.0_pt-BR_b03f5f7f11d50a3a/System.ServiceProcess.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.0.30319.1 built by: RTMRel
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Depuração JIT **************
Para habilitar a depuração just-in-time (JIT), o arquivo .config deste
aplicativo ou computador (machine.config) deve ter o valor
jitDebugging definido na seção system.windows.forms.
O aplicativo também deve ser compilado com a depuração
habilitada.

Por exemplo:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Quando a depuração JIT está habilitada, qualquer exceção sem tratamento
será enviada ao depurador JIT registrado no computador,
em vez de ser tratada nesta caixa de diálogo.
[31 Oct 2012 16:27] Vitor Curtis
Win 7 also has the same problem but it can be fixed by changing the "Logon as a service" policy.
In Win 7:
1 - Enter "secpol.msc" in Run box and press enter
2 - Go to Local Policies\User Rights Assignment
3 - Add the username in "Logon as a service" policy
[8 Jan 2013 11:55] shinichi youhammi
Solved for me:
I ve the same probleme: choosing all configuration by default, but all the time I get Unable to configure service.
Solution: when getting this problem, instead of pressing Try Again, just go to Windows Services, you will find the Mysql Service added there, but with an erroned User on the last colomn (open service as), So click right over the Mysql Service recently added and Propperties and Connexion, keep sure that information intered there are OK, for my case I just make it to Local System Account.
It seems that the mysql installer has a bug on putting the right user connexion info to the windows service that it create
[12 Jun 2013 20:39] Javier Treviño
This one looks like a duplicate of http://bugs.mysql.com/bug.php?id=66156
[1 Sep 2015 6:11] Chiranjeevi Battula
Hello André Slepetys,

Thank you for the bug report.
I tried with latest versions of MySQL 5.5.45 and 5.6.26 Installers as well and it worked without any issues.
Probably this is fixed, please feel free to reopen this bug report if you encounter this issue again.

Thanks,
Chiranjeevi.