.net连接mysql
首先在官网下载,mysql-connect-net,用于使用mysql的驱动程序,我在下载mysql-connect-net.msi. installer后,执行安装程序的时候一直无法安装成功,最简单的方法是直接下载.zip文件后解压,无须安装。 官网地址:http://dev.mysql.com/downloads/file/?id=463757 解压文件后, 出现了好几个文件夹,其中有v4和v4.5两个文件夹,对应vs的不同版本 VS2010使用V4.0下的dll文件 VS2012/2013/2015使用v4.5下的dll文件 其中有一个帮助手册十分有用: Documentation文件夹下的ConnectorNET.chm中包含了连接mysql数据库的API。 MySqlConnection类用来连接数据库 Constructor: 构造函数 MySqlConnection(String) Initializes a new instance of the MySqlConnection class when given a string containing the connection string. methods: 打开数据库 Open Opens a database connection with the property settings specified