Guest User

Untitled

a guest
Aug 20th, 2011
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. // MySQL.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <stdio.h>
  6. #include <winsock.h>
  7. #include "mysql.h"
  8.  
  9. int main() {
  10.     MYSQL mysql;
  11.  
  12.     if(mysql_init(&mysql)==NULL) {
  13.         printf("\nBlad inicjalizacji\n");
  14.         return 0;
  15.     }/*
  16.  
  17.     mysql_real_connect(&mysql,"localhost","user","pass","dbname",0,NULL,0);
  18.  
  19.     printf("Wersja klienta: %s",mysql_get_client_info());
  20.     printf("\nWersja serwera: %s",mysql_get_server_info(&mysql));
  21.     mysql_close(&mysql);*/
  22.     return 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment