DataBase and CDR

would u pleaze tell me how can i make asterisk saving CDR in mysql database
thx

voip-info.org/wiki-Asterisk+cdr+mysql

i do everything in this page but nothing happen there is no cdr in the db

the message asterisk write it is
mysql_log cannot connect to database server localhost