首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VisualStudio1.2.8安装MySQL失败

VisualStudio1.2.8安装MySQL失败
EN

Stack Overflow用户
提问于 2018-10-24 14:56:38
回答 3查看 9.7K关注 0票数 1

我试图通过MySQL安装程序安装VisualStudio1.2.8和Connector/NET8.0.13,但这两种安装都失败了。我从来没有安装过任何以前版本的这些软件包。我有VisualStudioCommunity2017,这里是安装日志:

代码语言:javascript
复制
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文件,但是当我尝试安装时,我会收到"MySQL for VisualStudio1.2.8安装向导过早结束“。

之后我尝试安装以前的版本,但是我只能安装Connector/NET6.9.12,但是Visual的所有MySQL版本都提前结束了。

有人知道我怎么安装它吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2019-05-14 18:55:45

今天,我遇到了一个类似的错误。在我的例子中,我无法卸载mysql-visualstudio-plugin-1.1.1.msi。之前还安装了MySQL连接器NET6.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连接器.)之前尝试卸载。

通用msi软件包(Un)安装调试

若要确定哪个安装或卸载存在隐藏错误,请在命令行上使用msiexec (以管理员身份运行它!)就像这样:

  • uninstalling一个msi包使用: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.

...and在msi (Un)安装窗口关闭后读取C:\下的-log-file.txt。

另一个提示:如果您使用的是MySQL安装程序for "C:\ProgramData\MySQL\MySQL\MySQL Installer for Windows\Product Cache",您可以在"C:\ProgramData\MySQL\MySQL\MySQL Installer for Windows\Product Cache"上找到可用的msi包。

回到安装连接器的问题你和我正在经历

在输入此命令时,我仍然需要安装.net连接器8.0.16。我正在阅读我的漂亮的-log-file.txt,就像前面提到的那样,并且看到它在添加成员资格提供程序时失败了(可能再次出现在machine.config中,就像它以前在早期版本中那样)。我稍后会回来,为这个新错误添加一个可能的解决方案。

更新答复/编辑:

早期的MySQL安装保留了一些旧的注册表项(…)我是从@Developer的答案中得到这个想法的。我按照他的回答,现在安装MySQL安装程序for Windows8.0.16.0是成功的,最后是

票数 2
EN

Stack Overflow用户

发布于 2019-03-22 15:11:55

我在Windows 10中也遇到了同样的问题,您应该安装Microsoft终极Visual 2012或以下版本:

  1. 下载:https://visual-studio-2012.fr.malavida.com/#gref (或2013年,2015年,2017年)
  2. 下载:http://cdn.mysql.com/Downloads/MySQL-for-VisualStudio/mysql-for-visualstudio-1.2.8.msi
  3. 您可以重试安装MySQL社区。
票数 1
EN

Stack Overflow用户

发布于 2018-11-29 11:06:21

  1. 如果在VS环境中有任何自定义设置,则通过Tools->选项导出它们。
  2. 转到C:\Users\AppData\Local\Microsoft\VisualStudio\15.0_并删除"privateregistry.bin“文件。
  3. 再次尝试安装,应该会成功。
  4. 打开。
  5. 如果VS因任何原因未能启动,请再次删除"privateregistry.bin“文件。
  6. 如果适用,请导入您的设置。Visual的MySQL现在应该是可用的。

答案来自以下链接:https://forums.mysql.com/read.php?174,664930,664971

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52972136

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档