the logs shows that the mysql server is started after
kamailio. Be sure
you set the order at startup to run mysql first, maybe google helps to
find the proper way.
That's a bug in the init script of Kamailio:
IIRC:
/etc/init.d/kamailio (add mysql):
# Required-Start: $syslog $network $local_fs $time mysql
# Required-Stop: $syslog $network $local_fs mysql
# re-create symlinks:
update-rc.d kamailio defaults