破坏mysql,升级到Windows 10会破坏MySQL工作台吗?

I recently upgraded to the released version of Windows 10 using the automatic upgrade feature from Windows 8. In addition to some other stuff breaking, it seems that MySQL Workbench is now broken.

The program starts fine, but when you try to connect to a database, you are presented with a fatal error:

The type initializer for 'HtmlRenderer.Utils.FontsUtils' threw an exception.

This occurs even after a restart and seems to occur every time.

解决方案

The issue occurs due to the HTML rendered dll that is included in Workbench. Full details of the bug are here.

For a quick fix, thanks to Michael Gaillez and Frank Quintero, the offending code is in this repo: https://github.com/ArthurHub/HTML-Renderer

To fix it yourself, replace this code:

static FontsUtils()

{

_fontsMapping["monospace"] = "Courier New";

_fontsMapping["Helvetica"] = "Arial";

foreach (var family in FontFamily.Families)

{

_existingFontFamilies.Add(family.Name, family);

}

}

With this code:

static FontsUtils()

{

_fontsMapping["monospace"] = "Courier New";

_fontsMapping["Helvetica"] = "Arial";

foreach (var family in FontFamily.Families)

{

if (!_existingFontFamilies.ContainsKey(family.Name))

{

_existingFontFamilies.Add(family.Name, family);

}

}

}

You want to put this new DLL in your Workbench folder, which, for me, is C:\Program Files\MySQL\MySQL Workbench 6.3 CE\

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值