Hi,
I am trying to connect from C# WinForm application to MySQL but getting the above error.
MySQL is on CentOS and I am connected through NaviCat without any problem with enabling SSH Tuning option in NaviCat.
here is my code in C#:
I am trying to connect from C# WinForm application to MySQL but getting the above error.
MySQL is on CentOS and I am connected through NaviCat without any problem with enabling SSH Tuning option in NaviCat.
here is my code in C#:
sql_connection = new MySqlConnection(xmlClass.get_connectionstring("BizCards\\BizCards")); sql_connection.Open(); sql_command = new MySqlCommand("sp_populate_countries", sql_connection); sql_command.CommandType = CommandType.StoredProcedure; // Create data adapter object sql_adapter = new MySqlDataAdapter(); sql_adapter.SelectCommand = sql_command; // Create a dataset object and fill with data using data adapter's Fill method data_set = new DataSet(); sql_adapter.Fill(data_set, "countries"); DataViewManager dataview_manager = new DataViewManager(data_set); DataView main_dataview = dataview_manager.CreateDataView(data_set.Tables["countries"]); cboCountry.Properties.ValueMember = "country_code_alpha2"; cboCountry.Properties.DisplayMember = "country_name"; cboCountry.Properties.DataSource = main_dataview; cboCountry.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("country_name", 50, "country_name")); cboCountry.Properties.ShowHeader = false; cboCountry.Properties.PopupSizeable = false; cboCountry.Properties.ShowFooter = false; cboCountry.Properties.PopupWidth = 50;