打开你的项目在项目上右键,选择[管理NuGet程序包]在[浏览]选项卡中搜索MySql选择MySql.Data,在右侧勾选安装的项目后,点击[安装]按钮相应的dll就安装到项目了var mssb = new MySqlConnectionStringBuilder();MySqlConnection sqlConnect = new MySqlConnection(mssb.ConnectionString);