Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MySQL.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <stdio.h>
- #include <winsock.h>
- #include "mysql.h"
- int main() {
- MYSQL mysql;
- if(mysql_init(&mysql)==NULL) {
- printf("\nBlad inicjalizacji\n");
- return 0;
- }/*
- mysql_real_connect(&mysql,"localhost","user","pass","dbname",0,NULL,0);
- printf("Wersja klienta: %s",mysql_get_client_info());
- printf("\nWersja serwera: %s",mysql_get_server_info(&mysql));
- mysql_close(&mysql);*/
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment