我正在尝试通过MySQL Installer为Visual Studio 1.2.8和Connector / NET 8.0.13安装MySQL,但两者均安装失败。我从未安装过这些软件包的任何先前版本。我有Visual Studio Community 2017,这是安装日志:
1: Download of product 'mysql-visualstudio-plugin' started from http://cdn.mysql.com/Downloads/MySQL-for-VisualStudio/mysql-for-visualstudio-1.2.8.msi
2: Download of product 'connector-net' started from http://cdn.mysql.com/Downloads/Connector-Net/mysql-connector-net-8.0.13.msi
1: Download of package 'MySQL for Visual Studio 1.2.8' succeeded
2: Download of package 'Connector/NET 8.0.13' succeeded
1: Action 16:39:24: INSTALL.
1: 1: MySQL for Visual Studio 1.2.8 2: {8FAF420D-7967-44AC-B8B1-F7067944F904}
1: Action 16:39:24: FindRelatedProducts. Searching for related applications
1: Action 16:39:24: AppSearch. Searching for installed applications
1: Action 16:39:24: SetWIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED.
1: Action 16:39:24: VS15_SetInstallationPaths.
1: 1: MySQL for Visual Studio 1.2.8 2: {8FAF420D-7967-44AC-B8B1-F7067944F904} 3: 3
1: The action 'Install' for product 'MySQL for Visual Studio 1.2.8' failed.
2: Action 16:39:24: INSTALL.
2: 1: MySQL Connector Net 8.0.13 2: {3BB51C01-9368-4DEF-BBD2-44914AD372AD}
2: Action 16:39:24: FindRelatedProducts. Searching for related applications
2: Action 16:39:24: AppSearch. Searching for installed applications
2: Action 16:39:25: LaunchConditions. Evaluating launch conditions
2: Action 16:39:25: ValidateProductID.
2: Action 16:39:25: CostInitialize. Computing space requirements
2: Action 16:39:25: FileCost. Computing space requirements
2: Action 16:39:25: CostFinalize. Computing space requirements
2: Action 16:39:25: InstallValidate. Validating install
2: Action 16:39:25: Setv45InstallUtil.
2: Action 16:39:25: InstallInitialize.
2: Action 16:39:25: RemoveExistingProducts. Removing applications
2: Action 16:39:25: ProcessComponents. Updating component registration
2: Action 16:39:25: GenerateScript. Generating script operations for action:
2: Updating component registration
2: Action 16:39:25: MsiUnpublishAssemblies. Unpublishing assembly information
2: Action 16:39:25: UnpublishFeatures. Unpublishing Product Features
2: Action 16:39:25: UninstallPerfCounterData.
2: Action 16:39:25: RemoveRegistryValues. Removing system registry values
2: Action 16:39:25: RemoveShortcuts. Removing shortcuts
2: Action 16:39:25: RemoveFiles. Removing files
2: Action 16:39:25: RemoveFolders. Removing folders
2: Action 16:39:25: CreateFolders. Creating folders
2: Folder: Creating folders
2: Action 16:39:25: InstallFiles. Copying new files
2: File: Copying new files, Directory: , Size:
2: Action 16:39:25: ManagedDataInstallSetup.
2: Action 16:39:25: ManagedDataInstall. Registering data provider in machine.config
2: Action 16:39:25: ManagedWebInstallSetup.
2:
2: Action 16:39:25: CreateShortcuts. Creating shortcuts
2: Shortcut: Creating shortcuts
2: Action 16:39:25: WriteRegistryValues. Writing system registry values
2: Key: Writing system registry values, Name: , Value:
2: Action 16:39:25: InstallPerfCounterData.
2: Action 16:39:25: RollbackRegisterPerfCounterData.
2:
2: Action 16:39:25: RegisterPerfCounterData.
2:
2: Action 16:39:25: RegisterUser. Registering user
2: Action 16:39:25: RegisterProduct. Registering product
2: Registering product
2: Action 16:39:25: MsiPublishAssemblies. Publishing assembly information
2: Application Context:Publishing assembly information, Assembly Name:
2: Action 16:39:25: PublishFeatures. Publishing Product Features
2: Feature: Publishing Product Features
2: Action 16:39:25: PublishProduct. Publishing product information
2:
2: Action 16:39:25: InstallFinalize.
2: Action 16:39:25: ProcessComponents. Updating component registration
2: Action 16:39:25: CreateFolders. Creating folders
2: Folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\MySQL\MySQL Connector Net 8.0.13\
2: Action 16:39:25: InstallFiles. Copying new files
2: File: CHANGES, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\, Size: 12125
2: File: Google.Protobuf.dll, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 294400
2: File: Google.Protobuf.dll, Directory: , Size: 294400
2: File: License, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\, Size: 99998
2: File: MySQL.Data.EntityFrameworkCore.Design.xml, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 162
2: File: MySQL.Data.EntityFrameworkCore.dll, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 62464
2: File: MySQL.Data.EntityFrameworkCore.xml, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 15529
2: File: MySQL.Data.EntityFrameworkCore.Design.dll, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 24064
2: File: MySql.Data.EntityFramework.dll, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 393728
2: File: MySql.Data.EntityFramework.xml, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 21256
2: File: MySql.Data.dll, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 709632
2: File: MySql.Data.dll, Directory: , Size: 709632
2: File: MySql.Data.xml, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 823007
2: File: MySql.Web.dll, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 162304
2: File: MySql.Web.xml, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\Assemblies\v4.5.2\, Size: 101005
2: File: MySql.Web.dll, Directory: , Size: 162304
2: File: README, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\, Size: 672
2: File: Release Notes.txt, Directory: C:\Program Files (x86)\MySQL\Connector NET 8.0\, Size: 1029
2: Action 16:39:25: ManagedDataInstall. Registering data provider in machine.config
2: Action 16:39:26: ManagedWebInstallSetup.
2: Action 16:39:26: Rollback. Rolling back action:
2: ManagedWebInstallSetup
2: Registering data provider in machine.config
2: Copying new files
2: Creating folders
2: Updating component registration
2: 1: MySQL Connector Net 8.0.13 2: {3BB51C01-9368-4DEF-BBD2-44914AD372AD} 3: 3
2: The action 'Install' for product 'Connector/NET 8.0.13' failed.
我还尝试从从MySQL站点下载的MSI文件中安装那些文件,但是当我尝试安装时,我收到“用于Visual Studio 1.2.8的安装向导的MySQL提前终止”。
此后,我尝试安装以前的版本,但是我只能安装Connector / NET 6.9.12,但是所有适用于Visual Studio的MySQL版本都过早了。
有人知道我该如何安装吗?
答案 0 :(得分:2)
今天,我遇到了类似的错误。就我而言,我无法卸载mysql-visualstudio-plugin-1.1.1.msi。之前还安装了MySQL Connector Net 6.7.4 + 6.8.3(还有更多的东西给了我很多手动解决的错误)。
在进行如下所述的machine.config替换之前,请先进行备份或重命名。
machine.config的修改版本似乎是罪魁祸首。我将相关的machine.config
文件内容(配置位于%windir%\Microsoft.NET\framework\config\{v2.0x and v4.0x folders}
和%windir\Microsoft.NET\framework64\config{v2.0x and v4.0x folders}
下)分别替换为同一文件夹中文件machine.config.default
的内容。
此后,终于有可能完全卸载与mysql相关的旧安装。过去,较旧的版本在machine.configs上的修补错误。我花了整整一天的时间才发现卸载在这件非常奇怪的事情上遇到了麻烦。如果这样不能立即为您提供帮助,请在尝试安装新的mysql相关文件(例如mysql服务器,mysql .net连接器...)之前尝试卸载。
要确定哪些安装或卸载确实存在隐藏的错误,请在命令行上使用msiexec(以管理员身份运行!),如下所示:
msiexec /x "<full-path-and-file-of>.msi" /lvx* C:\thelogfile.txt
... msiexec /i "<path-and-file-of>.msi" /lvx* C:\the-log-file.txt
... ...,并在关闭msi(un)安装窗口后,在C:\下读取 the-log-file.txt 。
另一个提示:如果您正在使用Windows的MySQL Installer,则可以在"C:\ProgramData\MySQL\MySQL\MySQL Installer for Windows\Product Cache"
上找到可用的msi软件包。
在键入此内容时,我仍然需要安装.net连接器8.0.16。我正在阅读我之前提到过的不错的 the-log-file.txt ,并且看到它在添加成员资格提供程序时失败了(可能是在machine.config中再次添加了,因为它在早期版本中是这样做的以及)。稍后我会回来为这个新错误添加一个可能的解决方案。
早期的MySQL安装中保留了一些旧的注册表项……我从@Developer的答案中得到了这个想法。我按照他的回答,最终现在成功安装了适用于Windows v8.0.16.0的MySQL安装程序。
答案 1 :(得分:1)
我在Windows 10上也遇到了同样的问题,您应该安装Microsoft Ultimate Visual Studio 2012或以下版本:
答案 2 :(得分:0)
答案来自以下链接:https://forums.mysql.com/read.php?174,664930,664971