且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

连接到使用Visual C#远程MySQL数据库

更新时间:2022-11-30 10:05:26

您必须code连接手动连接到使用Visual C#2008例preSS版远程MySQL数据库。

You will have to code the connection manually to connect to a remote MySQL database using Visual C# 2008 Express Edition.

2008年VS防爆preSS(和VS 2005例preSS太)不允许你通过数据源对话框使用MySQL .NET提供。非防爆preSS版本允许你这样做。

VS 2008 Express (and VS 2005 Express too) doesn't allow you to use MySQL .Net Provider through the Data Source Dialog. The non-Express edition allow you to do the same.

要在VS防爆preSS使用MySQL,你将不得不包括提及MySQL的DLL文件。如果您已经安装了MySQL的净提供者,这些DLL会在C:\ Program Files文件\ MySQL的\的MySQL Connector净XXX)。或DLL文件复制到你的项目的Bin文件夹。包括DLL文件后,你可以做一个的ConnectionString连接到远程MySQL数据库。

To use MySQL in VS Express, you will have to include a reference to the MySQL DLLs. If you have installed the MySQL .Net Provider, the DLLs will be in C:\Program Files\MySQL\MySQL Connector Net x.x.x). Or copy the DLLs to the Bin folder of your project. After including the DLLs, you can make a ConnectionString to connect to the remote MySQL Database.

MySQL的.NET提供可以发现这里

The MySQL .Net Provider can be found here

有一个类似的问题被要求在线程396593这里

A similar question was asked in thread 396593 here