Re: why donn't work mysql_real_connect

2005-06-27 Thread Philippe Poelvoorde
mm wrote: Dear friends, This is my first cpp module working with mySQL. It looks like the error is located in MYSQL *m=mysql_real_connect(myDB, host, user, passwd, ... There is a way to find out step by step which parameters is wrong? I am working with Fedora core 3 and MySQL 3.23.58 Thanks, MT

Re: why donn't work mysql_real_connect

2005-06-25 Thread mm
Hi, I did it so I thank you again. Belove is my code that did it, I hope, what I expect. I notice the version of documentation not the same as my copy on my hard drive. Thanks again, mt #include "/usr/include/mysql/mysql.h" int modulMySQL() { MYSQL mysql; printf("01\n"); fflush(stdout); mysql_

Re: why donn't work mysql_real_connect

2005-06-25 Thread Mathias
Hi, I don't use C APPI, but found this in docs for you : *** connect sample : MYSQL mysql; mysql_init(&mysql); mysql_options(&mysql,MYSQL_READ_DEFAULT_GROUP,"your_prog_name"); if (!mysql_real_connect(&mysql,"host","user","passwd","database",0,NULL,0)) { fprintf(stderr, "Failed to conne

why donn't work mysql_real_connect

2005-06-24 Thread mm
Dear friends, This is my first cpp module working with mySQL. It looks like the error is located in MYSQL *m=mysql_real_connect(myDB, host, user, passwd, ... There is a way to find out step by step which parameters is wrong? I am working with Fedora core 3 and MySQL 3.23.58 Thanks, MT +++