mySQL II

L.O.V.E. mirror_92 at yahoo.com
Thu Apr 27 21:45:55 EEST 2000


exw ayto to problima, sto programa pu akolou8ei.
To error mesg pu mu bgazei otan to kanw compile, einai oti
i mysql den orizetai (undefined variable).
Egw apla pira to programma apo to manual tis mySQL , to antegrapsa kai
to etreja. (To programa einai stin 20.4.4.4 enotita)

#include <stdio.h>
#include <stdlib.h>
int main()
{
MYSQL *mysql;

mysql_init(&mysql);
if (!mysql_real_connect(&mysql, "localhost", NULL, NULL, "test", 0,
NULL, 0))
 {
  fprintf(stderr, "FAILED REAL CONNECT", mysql_error(&mysql));
 }

mysql_close(&mysql);

return 0;
}

opio kalo pedi, 8elei na boi8isei aytes tis agies imeres......
8a xarw poly :)))))))))




--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list