.net连接mysql的provider里面除了dll还有帮助文档和例子引用其DLL,之后简单代码如下,和普通的用data.sqlclient差不多。usingMySql.Data.MySqlClient;........MySqlConnectionmyConnection=newMySqlConnection("server=localhost;userid=root;password=XXXX;database=baby");stringsql="select*fromadmin";MySqlDataAdaptermyda=newMySqlDataAdapter