Build the cdr_mysql module for Asterisk (Yep, more compiling!) cd /usr/src/asterisk-addons-1.6.2.2
make clean && ./configure && make menuselect
At menu press "x"
make && make install
View the discussion thread.