標籤:ddr installer config bool cep dll 地址 upd sys
問題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:\Users\Me\Downloads\mysql-connector-net-6.9.3.msi /lvx* C:\Users\Me\Downloads\mysql-connector-net-6.9.3-uninstall.log
.log 為安裝時的記錄檔可進行查看發現如下:
System.NullReferenceException: 未將對象引用設定到對象的執行個體。
在 MySql.ConnectorInstaller.WebCustomAction.AddRoleProvider(XmlDocument doc)
在 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 就開始出現了為啥官方就不給直接解決了呢,好歹也是個大公司啊,坑爹啊,浪費我兩天時間
win7 MySQL Connector/Net 安裝卸載問題