What am I missing? all mysql calls have to go over a system call, so strace will see them (as write() or send() I guess).
Why use ltrace for this job?
Why use ltrace for this job?
ltraceing mysql_send_query() gives you all this information in one line.