I've got on that really has me stumped ...
I've modified tha analog web stats program before to use a mysql database
before and I'm trying to do it again on a new system. I have this
function:
void db_connect(){
printf("start connect\n");
mysql_init(&dbh);
if (!mysql_real_connect(&dbh,"localhost","usr","xxx","rdns",0,NULL,0)){
fprintf(stderr, "Connection to rdns database failed\n");
exit(1);
}
printf("finish connect\n");
}
where dbh is a global MYSQL structure. This code works fine on the old
system. If I pull it out into it's own little test program on the new
server, it also works fine. But when I put it in with the analog source
code, it compiles fine but the mysql_real_connect causes a core dump when
run.
Running 4.0.17 on FreeBSD 4.9R
Any ideas?
Cliff
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]