title: How to access server MySQL database from iOS app
body: <p>I'm trying to write an <code>iOS</code> app using <code>Xcode</code>. </p>
  
  <p>A simple login prompting username and password.</p>
  
  <p>I have no idea how to open a database connection to validate the username and password.</p>
  
  <p>The database I use is <code>mysql</code>. </p>
  
  <p>I tried using this link <a href="http://macbug.org/macosxsample/mysql#.Ur8AYBbtGPF" rel="nofollow">http://macbug.org/macosxsample/mysql#.Ur8AYBbtGPF</a></p>
  
  <p>but I get an error when I tried to add <code>libmysqlclient.a</code> to the frameworks and library. </p>