Bug #92392 The action 'Install' for product 'MySQL Server 8.0.12' failed
Submitted: 12 Sep 2018 20:53 Modified: 10 Jan 2019 8:14
Reporter: Thomas Westfall Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:8.0.12 OS:Windows (Windows 10 Pro 64 bit)
Assigned to: CPU Architecture:Any
Tags: installation

[12 Sep 2018 20:53] Thomas Westfall
Description:
While trying to install MySQL Server 8.0.12 I receive a failed message but no real error message is shown.  I am running the install from mysql-installer-community-8.0.12.0.msi.

I can confirm that Microsoft Visual C++ Redistributable 2013 and 2015 for both 64 and 32 bit systems are installed.  Not really sure what else to look at.

Here's the log from the install.

************************************************************

1: Action 16:20:14: INSTALL. 
1: 1: MySQL Server 8.0 2: {29AEA9CC-3A6A-4F86-8A0E-AC8750F91B69} 
1: Action 16:20:14: FindRelatedProducts. Searching for related applications
1: Action 16:20:14: AppSearch. Searching for installed applications
1: Action 16:20:14: LaunchConditions. Evaluating launch conditions
1: Action 16:20:14: ValidateProductID. 
1: Action 16:20:14: CostInitialize. Computing space requirements
1: Action 16:20:14: FileCost. Computing space requirements
1: Action 16:20:14: CostFinalize. Computing space requirements
1: Action 16:20:14: MigrateFeatureStates. Migrating feature states from related applications
1: Action 16:20:14: InstallValidate. Validating install
1: Action 16:20:14: SaveTargetDir. 
1: Action 16:20:14: InstallInitialize. 
1: Action 16:20:14: RemoveExistingProducts. Removing applications
1: Action 16:20:14: ProcessComponents. Updating component registration
1: Action 16:20:14: GenerateScript. Generating script operations for action:
1: Updating component registration
1: Action 16:20:15: UnpublishFeatures. Unpublishing Product Features
1: Action 16:20:15: SchedSecureObjectsRollback. 
1: Action 16:20:15: RemoveRegistryValues. Removing system registry values
1: Action 16:20:15: RemoveShortcuts. Removing shortcuts
1: Action 16:20:15: RemoveFiles. Removing files
1: Action 16:20:15: RemoveFolders. Removing folders
1: Action 16:20:15: CreateFolders. Creating folders
1: Folder: Creating folders
1: Action 16:20:15: InstallFiles. Copying new files
1: File: Copying new files,  Directory: ,  Size: 
1: Action 16:20:15: CreateShortcuts. Creating shortcuts
1: Shortcut: Creating shortcuts
1: Action 16:20:15: WriteRegistryValues. Writing system registry values
1: Key: Writing system registry values, Name: , Value: 
1: Action 16:20:15: InstallServices. Installing new services
1: Action 16:20:15: SchedSecureObjects. 
1: Action 16:20:15: ExecSecureObjects. 
1: 
1: Action 16:20:15: RegisterUser. Registering user
1: Action 16:20:15: RegisterProduct. Registering product
1: Registering product
1: Action 16:20:15: PublishFeatures. Publishing Product Features
1: Feature: Publishing Product Features
1: Action 16:20:15: PublishProduct. Publishing product information
1: Action 16:20:15: InstallFinalize. 
1: Action 16:20:15: ProcessComponents. Updating component registration
1: Action 16:20:15: CreateFolders. Creating folders
1: Folder: C:\ProgramData\MySQL\MySQL Server 8.0\

* Removed many of the file lines to shorten this up

1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 8.0\share\swedish\,  Size: 259442
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 8.0\share\ukrainian\,  Size: 268501
1: Action 16:20:19: CreateShortcuts. Creating shortcuts
1: Shortcut: icon.ico
1: Shortcut: Icon.MysqlCmdShell
1: Shortcut: rpxm3ds_|MySQL 8.0 Command Line Client
1: Shortcut: 7ejegqmo|MySQL 8.0 Command Line Client - Unicode
1: Action 16:20:19: WriteRegistryValues. Writing system registry values
1: Key: \SOFTWARE\MySQL AB\MySQL Server 8.0, Name: Location, Value: C:\Program Files\MySQL\MySQL Server 8.0\
1: Key: \SOFTWARE\MySQL AB\MySQL Server 8.0, Name: Version, Value: 8.0.12
1: Key: \SOFTWARE\MySQL AB\MySQL Server 8.0, Name: DataLocation, Value: C:\ProgramData\MySQL\MySQL Server 8.0\
1: Key: \SOFTWARE\MySQL AB\MySQL Server 8.0, Name: , Value: 
1: Key: \Console\MySQL 8.0 Command Line Client - Unicode, Name: FaceName, Value: Lucida Console
1: Key: \Console\MySQL 8.0 Command Line Client - Unicode, Name: FontWeight, Value: #400
1: Key: \Console\MySQL 8.0 Command Line Client - Unicode, Name: , Value: 
1: Key: \Software\MySQL AB\MySQL Server 8.0, Name: installed, Value: #1
1: Action 16:20:19: ExecSecureObjects. 
1: Action 16:20:19: Rollback. Rolling back action:
1: ExecSecureObjects
1: Writing system registry values
1: Creating shortcuts
1: Copying new files
1: Creating folders
1: Updating component registration
1: 1: MySQL Server 8.0 2: {29AEA9CC-3A6A-4F86-8A0E-AC8750F91B69} 3: 3 
1: The action 'Install' for product 'MySQL Server 8.0.12' failed.

How to repeat:
Retrying the install always gives the exact same result.
[12 Sep 2018 21:46] MySQL Verification Team
Thank you for the bug report. Microsoft Visual C++ Redistributable 2017 is installed? otherwise please do. Thanks.
[13 Sep 2018 12:31] Thomas Westfall
As requested I installed the C++ Redistributable 2017 64 bit which replaced the 2015 version leaving the 2013 version installed.  This required a reboot.  I saw that the 32bit version was not installed so I ran that installation too.  That didn't require a restart, I attempted the install of My SQL server again and this prompted that there was an update which I accepted and continued the install.  Once again, it failed.  I then restarted the PC and attempted again.  This time the installer hangs on "Please wait while Windows configures MySQL installer - Community".  What next?
[13 Sep 2018 12:45] Thomas Westfall
Install Log file

Attachment: mysql install log.txt (text/plain), 23.48 KiB.

[13 Sep 2018 12:47] Thomas Westfall
After reading further I ran the installer (mysql-installer-community-8.0.12.0.msi) from an elevated command prompt which allowed the install to continue however it failed again.  I attached the log file to this report. What's next.
[14 Sep 2018 3:34] Thomas Westfall
Are you still looking at this?  Hard to troubleshoot something that doesn't provide any errors but I need to get this working. Is there a work around?
[17 Sep 2018 21:42] MySQL Verification Team
Sorry but I couldn't repeat on 3 Windows 10 Pro 64-bit machines, I am assignment a co-worker to try on his side too.
[18 Sep 2018 5:44] MySQL Verification Team
Thank you for the feedback.
I attempted 4 times this morning on Win7 using mysql-installer-community-8.0.12.0.msi, my observation is that installer has no issues and installs 8.0.12 when both Microsoft Visual C++ Redistributable for Visual Studio 2017 installed i.e 32bit(x86) and 64bit(x64) are installed. It failed *only* when 32bit(x86) was missing and with message "This application requires Visual Studio 2015 Redistributable. Please install the Redistributable then run this installer again." which was not seen in your case though.

regards,
Umesh
[18 Sep 2018 5:44] MySQL Verification Team
Win7 - 8.0.12 installation log

Attachment: 92392.install_log (application/octet-stream, text), 52.84 KiB.

[18 Sep 2018 5:46] MySQL Verification Team
Installed  Microsoft Visual C++ Redistributable for Visual Studio

Attachment: 92392_Redistributable.png (image/png, text), 76.42 KiB.

[18 Sep 2018 5:46] MySQL Verification Team
Removed Microsoft Visual C++ Redistributable for Visual Studio 2017 (x86)

Attachment: 92392_Redistributable_Without_86.png (image/png, text), 80.57 KiB.

[18 Sep 2018 11:20] David Watler
copy of log

Attachment: mysql Install Log.txt (text/plain), 23.89 KiB.

[18 Sep 2018 11:21] David Watler
I'm having the same problem on a clean install of Windows 10. See log attached above.
[18 Sep 2018 12:01] Thomas Westfall
My installation was also done on a clean install of Windows 10 with only the features of IIS and CGI being turned on and PHP 7 being installed as well.  I installed Visual C++ 2015 for both 32 and 64 bit  and then was asked to install Visual C++ for 2017 which overwrote the 2015 install.  Both logs are shown here.  In all instances the install fails but no error message is given.
[18 Sep 2018 12:24] David Watler
In case it helps, I tried installing two previous GA releases (5.7.23.0 and 5.6.41.0) and encountered exactly the same error.
[19 Sep 2018 15:50] Thomas Westfall
I just reimaged a MS Surface Pro went though the setup and then attempted to install MySQL again and again getting the exact same results.  No errors but MySQL Server will not complete the install.
[1 Oct 2018 15:39] Vaishali Singh
Hi All,
Is this bug resolved?
I am also trying to install MySQL through mysql-installer-community-8.0.12.0.msi and getting Failed status for MySQL Server during the installation.
I installed VC++ redistributable for 2017 and 2015 for both 32-bit and 64-it architecture.
[1 Oct 2018 15:41] Vaishali Singh
Installation Log file details

Attachment: mysql install.log (application/octet-stream, text), 458.90 KiB.

[1 Oct 2018 15:48] Thomas Westfall
No.  This has still not been resolved.  At least not that I am aware of.
[1 Oct 2018 20:37] Vaishali Singh
Hi Thomas,
You can try installing the server alone without selecting the Server data files during Installation.
I saw few articles online which were related to the error, you and I are facing.

1: Key: \Console\MySQL 8.0 Command Line Client - Unicode, Name: , Value: 
1: Key: \Software\MySQL AB\MySQL Server 8.0, Name: installed, Value: #1
1: Action 16:20:19: ExecSecureObjects.  ------> After this step, installation is rolling back.

1: Action 16:20:19: Rollback. Rolling back action:
1: ExecSecureObjects
1: Writing system registry values
1: Creating shortcuts
1: Copying new files
1: Creating folders
1: Updating component registration
1: 1: MySQL Server 8.0 2: {29AEA9CC-3A6A-4F86-8A0E-AC8750F91B69} 3: 3 
1: The action 'Install' for product 'MySQL Server 8.0.12' failed.

I found another bug https://bugs.mysql.com/bug.php?id=89226
I am able to install the server without the server data files and it seems to be running fine as of now.

Hope it helps!
[2 Oct 2018 17:25] Thomas Westfall
When I tried the install again and unchecked the box to copy Server Data Files the install completed successfully.
[8 Oct 2018 11:42] MySQL Verification Team
Then according your last comment, the issue was resolved, right?
[8 Oct 2018 14:16] Thomas Westfall
I would not call this resolved but more of a work around.  I really don't know what copying the Server Data Files means or does.  It does appear that I can now use mySQL on this PC and that was final result I was looking for.
[24 Nov 2018 23:04] Dave Allonby
I Also have this error trying to install the workbench on a windows 10 laptop which also has Visual studio installed.
[24 Nov 2018 23:22] Dave Allonby
for me i did a work around.

copied the install msi to c:\temp then renamed to workbench.msi. i then started an admin level command prompt and did the following
cd c:\temp
msiexec /package workbench.msi /l* install.log

the install now worked, happy days...
[10 Dec 2018 8:14] MySQL Verification Team
Please try version 8.0.13.
[11 Jan 2019 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[15 Feb 2019 12:54] Laura Lewis
I am having the exact same problem, but unchecking the box to copy Server Data Files during the install is NOT working for me. I am still getting 'failed' for MySQL Server 8.0.15, MySQL Workbench 8.0.15 and Connector/ODBC 8.0.15, without any error messages to tell me what the issue is. Is there a solution to this, or has anyone found any alternative workarounds? I really need to get MySQL working on my computer.
[28 Feb 2019 22:55] Christelle Rousseau
Same problem. Ran the 8.0.15 installer on my new Windows 10 Pro (1803) laptop with Intel i5 CPU, 8GB RAM. Was able to install Workbench, connectors, documentation, but fails to install the Server itself. 

Tried multiple options in Custom Install, then Server Only, without success. Tried both the web version and the community download version of the installer without success. Disabled my anti-virus without success. Fully uninstalled and reinstalled multiple times. Ran using an Admin elevated command prompt without success. Installed Visual C++ 2015, then uninstalled, tried with Visual C++ 2017 without success, uninstalled, tried Visual C++ 2015 with latest patches without success. ??!!...

Always the same error, goes to 89%, then 50%, and Failed on ExecSecureObjects.

...
1: Key: \Console\MySQL 8.0 Command Line Client - Unicode, Name: FontWeight, Value: #400
1: Key: \Console\MySQL 8.0 Command Line Client - Unicode, Name: , Value: 
1: Key: \Software\MySQL AB\MySQL Server 8.0, Name: installed, Value: #1
1: Action 15:49:39: ExecSecureObjects. 
1: Action 15:49:39: Rollback. Rolling back action:
1: ExecSecureObjects
1: Writing system registry values
1: Creating shortcuts
1: Copying new files
1: Creating folders
1: Updating component registration
1: 1: MySQL Server 8.0 2: {28176271-5414-47DD-8C0F-C7084FFA4524} 3: 3 
1: The action 'Install' for product 'MySQL Server 8.0.15' failed.

Possible suggestion for troubleshooting/replicating the error, since it may be security related:
My laptop is not joined to a domain. It runs under my Microsoft account.
[30 Jul 2019 13:49] Houssem Horchani
Hello, Ihave the exact same issue that @Christelle Rousseau described. I tried all wat she did and more without succes. Unchecking the box to copy Server Data Files during the install let me install the server but it never starts, it fails to start and according to windows service manager(services.msc) it fails with 1067 error message (unkown issue)
So the problem is not solved yet.
[11 Nov 2019 14:55] Dennis LLopis
Ok, so I had the same issue here. What worked for me was that I had to install the Microsoft Visual C++ 2015 Redistributable Update 3 RC. Go into add/remove programs and check to see if you're missing it. I had a gap from 2013 version to the 2017 version.

Note: You will have to uninstall the 2017 version in order to install the 2015 version. Then I manually downloaded the MySQL version 8.0.18 of workbench (installed it first) and then manually downloaded the server and installed it successfully as well.

How I encountered this fix was by reading the error log when I was not able to install the workbench during installation. - that fix helped me install the server...

I hope this helps anyone as I know how frustrating this issue can be and be sure to run the installer for each item individually and check the error log.

Best of luck my friends.
[4 Dec 2019 17:40] Daniel Reimann
I had the same issue on a Windows 10 64 bit machine. In custom install, I unchecked Server Data Files and then the install completed. I haven't tested yet, what that means though. I am not sure what it means.

1: 1: MySQL Server 8.0 2: {48447F31-6B57-4B13-BA5F-4D019FA995E1} 3: 1 
1: The action 'Install' for product 'MySQL Server 8.0.18' completed successfully.
[12 Apr 2020 0:48] Rob Roark
Same thing as others on this thread. Except I am now on 8.0.18 and 8.0.19. I have spent most of the day with this, and am very frustrated.  I just need to do a simple install of MySQL server for a non profit community Radio DJ software install that I have done on other desktops, and I have wasted most of the day trying to get this resolved.

Windows 10 Pro version 1903.  Clean install with limited software. HP Intel I7 64 bit laptop.

I would have thought that by April 2020 that this bug would have been figured out, and at least had better message on install fail.  going to command prompt for a work around is not the right solution for a medium level user like myself.  Glad I am not dealing with Oracle support for paid products based on the chain in this open bug report.  I understand that I am going with the basic free module, but I have got to find an alternative now.
[14 Feb 2021 11:59] Alex Stiglitz
Hi there from 2021,

Found alternative solution to the issue (2: The action 'Install' for product 'MySQL Server 8.0.23' failed.) I just as you guys have been struggling with this issue for a while...

Here is my suggestion:
1) Disregard latest SQL Server version available (it just doesn't work, cannot install it)
2) Make sure to have latest MS C++ Redistributive version installed (https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03...) - either x64 or x86, depending on your system
3) Have latest MS OS updates installed 
4) Choose MySQL Server 8.0.0 version (just ignore latest versions)-and try to install it separetly (x64 or x86 - depends on your system). It seems 8.0.0 is somehow stable and "installable".

And after these 4 magical steps, I somehow installed the server...and it worked :)

Hope this is helpful to somebody!
[17 Aug 2023 7:46] VEERAYYA SUGIRAYYANAMATH
The action 'Install' for product 'MySQL Server 8.0.34' failed.

how to fix this one?