zoukankan      html  css  js  c++  java
  • win7 MySQL Connector/Net 安装卸载问题

    问题1:卸载MySQL Connector Net 6.9.9 卸载程序无法卸载

    方法:注册表搜索 MySQL Connector Net 6.9.9 全部删除

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

    问题2:无法安装MySQL Connector Net 8.0.10 安装是直接回滚 (此处应该跟版本无关,我试了多个版本都无法安装)

    方法:参考地址 https://stackoverflow.com/questions/28814244/cannot-uninstall-mysql-connector-net-6-9-3-failure-at-mysql-web-v20-dll

    解决方法的大致意思是 MySQL 的安装程序在配置操作系统的 machine.config 出现错误,可通过如下方法验证:

    控制台运行 

    C:> C:UsersMeDownloadsmysql-connector-net-6.9.3.msi /lvx* C:UsersMeDownloadsmysql-connector-net-6.9.3-uninstall.log

    .log 为安装时的日志文件可进行查看发现如下:

    System.NullReferenceException: 未将对象引用设置到对象的实例。
    在 MySql.ConnectorInstaller.WebCustomAction.AddRoleProvider(XmlDocument doc)     《-------------此处的错误一般是因为这个配置节下有<clear />这个节点
    在 MySql.ConnectorInstaller.WebCustomAction.AddProviderToMachineConfigInDir(String path)
    在 MySql.ConnectorInstaller.WebCustomAction.UpdateMachineConfigs(String rootPath, Boolean add)
    在 MySql.ConnectorInstaller.WebCustomAction.AddProviderToMachineConfig()
    在 MySql.ConnectorInstaller.WebCustomAction.WebInstall(Session session)

    该根据参考地址的解释是说machine.config 中有<clear /> 这个节点,但是mysql的安装程序没有识别,具体原因可以看参考地址。

    所以全部清空machine.config 中的 <clear /> 在进行安装和卸载就比较方便了。注意:machine.config 修改前请先备份。

    吐槽:这个问题貌似从6.5 就开始出现了为啥官方就不给直接解决了呢,好歹也是个大公司啊,坑爹啊,浪费我两天时间

  • 相关阅读:
    Redis常见七种使用场景(PHP实战)
    session垃圾回收机制
    header 头各种类型文件下载
    SQL优化(面试题)
    spring中bean的生命周期
    JAVA的分布式锁
    Java微服务下的分布式事务介绍及其解决方案
    Java反射
    类加载的三种方式
    Sql语句的基本查询用法,两表联查,3表联查
  • 原文地址:https://www.cnblogs.com/GYY2046/p/8438791.html
Copyright © 2011-2022 走看看