win7 MySQL Connector/Net 安裝卸載問題

來源:互聯網
上載者:User

標籤: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 安裝卸載問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.