title: How to connect to a xampp server to a c# gui app?
body: <p>So i was trying to connect a c# gui app to a xampp sql server here's the code:</p>
  
  <pre><code>try
  {
  
    string connectionString = "Server = localhost:8080; database = blog; Uid=root;Pwd";
    SqlConnection conn = new SqlConnection(connectionString);
    conn.Open();
    SqlCommand cmd = new SqlCommand("insert into logins(username,password) values('name','password')", conn);
    cmd.ExecuteNonQuery();
  }
  catch (Exception ex)
  {
     MessageBox.Show(ex.Message);
  }
  </code></pre>
  
  <p>this is the code username is root and no password
  but when the program starts it raises an exception saying:</p>
  
  <blockquote>
    <p>Format of the initialization string does not conform to specification starting at index 52.</p>
  </blockquote>
  
  <p>Whats causing this problem and how can i solve it?
  Thanks in advance</p>