This program worked in 4.0 great, now I want to upgrade to 4.1.7. sysklogd-sql seemed to compile fine to it, but never actually inserts anything. it always just loads a bunch of process until it cant connect anymore.
Thanks, Jeff
Logged In: NO
The fix is to change sizeof(buf) to length(bug) in the sql call.. The length send to mysq_real_connect isnt correct.
Logged In: YES user_id=2251
the fix is to either change mysql_real_query to mysql_query, or change the sizeof to length. The null is getting send to mysql and its barfing..
Having same issue..... Any Fix Yet???
Not sure how to fix this based on the suggestion; can you all provide more details??
Found the FIX:
in syslogd.c change: syslog_sql_query(f, buf, sizeof(buf)); to: syslog_sql_query(f, buf, strlen(buf));
re compile and it worked for me.
Log in to post a comment.
Logged In: NO
The fix is to change sizeof(buf) to length(bug) in the sql call.. The
length send to mysq_real_connect isnt correct.
Logged In: YES
user_id=2251
the fix is to either change mysql_real_query to mysql_query, or
change the sizeof to length. The null is getting send to mysql and
its barfing..
Logged In: NO
Having same issue..... Any Fix Yet???
Logged In: NO
Not sure how to fix this based on the suggestion; can you all provide more details??
Logged In: NO
Found the FIX:
in syslogd.c
change: syslog_sql_query(f, buf, sizeof(buf));
to: syslog_sql_query(f, buf, strlen(buf));
re compile and it worked for me.