The first step I’d take is to log into mysql using the username and password as it appears in your configs. Once in, make sure you can do a select on the realtime tables. If not, the problem may lie with table permissions (i.e. you need to use the GRANT commands in mysql".
Assuming you already did that first step, next I suggest you recompile both asterisk and asterisk-addons. When you compile the addons package, make sure you’re not getting an error about libmysqlclient being missing… If you are, you need to add the path to the mysql lib directory int ld.so.conf, then run “ldconfig”.
In the asterisk-addons directory begin by doing a “make distclean” to clean things out a bit, then do “./configure”, followed by “make menuselect”. Be sure you added the mysql extensions in, then do a “make” and "make install.
I’d suggest completely stopping asterisk, then restarting it from scratch so you know for sure that the recently compiled modules are being used. See if that works.