title: Connecting C to mysql
body: <p>I am connecting  C to mysql and then creating a database .<br>
  My code is:<br></p>
  
  <pre><code>#include &lt;mysql.h&gt;
  #include &lt;my_global.h&gt; 
  
  int main(int argc, char **argv)
  {MYSQL *conn;
  conn = mysql_init(NULL);
  if (conn == NULL) {
    printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));
    exit(1);}
  if (mysql_real_connect(conn, "localhost", "zetcode", "passwd", NULL, 0, NULL, 0) == NULL)
   {printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));
    exit(1);}
  if (mysql_query(conn, "create database testdb")) {
   printf("Error %u: %s\n", mysql_errno(conn), mysql_error(conn));
    exit(1);
    }
  mysql_close(conn);}
  </code></pre>
  
  <p>But i don't have the headers mysql.h and my_global.h<br>
  How can i get them??<br><strong>Thanks</strong></p>