have you modified logger.conf so that debug info is written to/var/log/asterisk/full ?
in /etc/asterisk.res_config_mysql.conf
Put
[general]
dbhost = localhost
dbname = asteriskrealtime
dbuser = root
dbpass = password
dbport = 3306
dbsock = /var/lib/mysql/mysql.sock
dbcharset = latin1
;requirements=warn ; or createclose or createchar
To Verify us the following command
localhost*CLI> realtime mysql status
general connected to asteriskrealtime@localhost, port 3306 with username root for 7 minutes.