Advertisement
Guest User

Untitled

a guest
Sep 8th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <mysql.h>
  4.  
  5. int main () {
  6. MYSQL *conn;
  7. char *server = "localhost";
  8. char *user = "root";
  9. char *password = "";
  10. char *database = "database";
  11. int port = 3306;
  12. conn = mysql_init(NULL);
  13. mysql_real_connect(conn, server,user,password,database, port, NULL, 0);
  14.  
  15. return 0;
  16. }
  17.  
  18. <terminated> (exit value: -1,073,741,515)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement