title: How to loop through multiple connection strings in a db and query them?
body: <p>I don't know how to loop through my local database and add the values to this <code>string</code>:</p>
  
  <pre><code>string credentials = @"server = 127.0.0.1;
  user id = system; 
  port = 3308; 
  Password = 975315";
  </code></pre>
  
  <p><a href="https://i.imgur.com/6B4YFw7.png" rel="nofollow noreferrer">https://i.imgur.com/6B4YFw7.png</a></p>
  
  <p>I kind of need something like this:</p>
  
  <pre><code>string credentials = @"server = IDindb;
  user id = IDindb; 
  port = Portindb; 
  Password = Pwindb";
  
  
  foreach(rowofdata in localdb)
  {
          MySqlConnection con = new MySqlConnection(credentials);
          con.Open(); //Opens the connection
          MySqlCommand cmd = new MySqlCommand(sqlQuery, con); //Sends the 
  query to "show slave status"
  
  Create a new table in browser that shows if server is running or not.
  }
  </code></pre>