Menu

#3 mysql 4.1.7

open
nobody
None
5
2013-02-18
2004-11-21
No

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

Discussion

  • Nobody/Anonymous

    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.

     
  • Jeff Smelser

    Jeff Smelser - 2004-12-23

    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..

     
  • Nobody/Anonymous

    Logged In: NO

    Having same issue..... Any Fix Yet???

     
  • Nobody/Anonymous

    Logged In: NO

    Not sure how to fix this based on the suggestion; can you all provide more details??

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.