找不到或无法加载已注册的 .net framework data provider
将数据从mysql中导入 mssqlserver 中方便快捷的方法就是利用 sql server 提供的工具进行操作。
首先确保在在本地计算机中安装了mysql程序。并且要保证安装程序中要有 connector/net
其实在安装完成之后,系统自动会在.net framework 中配置好的。但是如果出现下面这种情况,就说明系统已配置好,但是有一些错误。所以数据源中可以看到
.net framework data provider for mysql
但是找不到,或无法加载。

我们在计算机中找到相关的配置文件。在我的计算中(c:\windows\microsoft.net)这个目录下有两个版本的 framework,
我这里用到的是不带64的。进去找到
(c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config)
这个文件,打开并找到 结点。


version=8.0.33, culture=neutral, publickeytoken=c5687fc88969c44d"/>
我这里不好用的原因就是这里,我的mysql数据库版本是 8.0.33,没错,但是,这里还少了一位,version=8.0.33.0 也就是说在后面加了 .0 ,即
version=8.0.33.0, culture=neutral, publickeytoken=c5687fc88969c44d"/>
改完之后,重新进入一下导入程序就好用了。
