Store peers in MySql database

I would like to store my peers/users in a mysql database. I have read that I must enable “MYSQL_FRIENDS”? How would I go about doing this? And has anybody done this before that could offer some guidance? Thanks!

Have a look at http://www.voip-info.org/wiki/view/Asterisk+RealTime+Sip, this should answer most of Your questions.