title: Connection to Mariadb in a C# application
body: <p>I am new to c#. I am trying to make a connection to my On-Premise MariaDb Database using a simple windows form application. Where my connection is getting established successfully but later it was getting closed by my remote host forcibly. I am attaching my code.Can you guys check this code and help me what is the missing piece. Thanks in advance</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Data.SqlClient;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  namespace WindowsFormsApp1
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              string connectionString;
              SqlConnection cnn;
              connectionString = @"Data Source=xxx.xxx.x.xx,xxxx;Initial Catalog=dataBaseName;User ID=UID;Password=Password";
              cnn = new SqlConnection(connectionString);
              cnn.Open();
              MessageBox.Show("Connection Open !");
              cnn.Close();
  
          }
      }
  }
  
  </code></pre>
  
  <p>This is the error I am getting </p>
  
  <blockquote>
    <p>System.Data.SqlClient.SqlException: 'A connection was successfully 
    established with the server, but then an error occurred during the pre-login > handshake. (provider: TCP Provider, error: 0 - An existing connection was 
    forcibly closed by the remote host.)'</p>
  </blockquote>