Changing Asterisk Database Server


I would just like to know from where can i change IP address of database server for asterisk.
I have installed
asterisk on =
mysql database server on =

so i just want to set as main database server for asterisk. from where can i dot that, which file need to be edited.

Hi mudasir!

I have about the same.

In Asterisk edit the file

[general] dbhost = dbname = DBname dbuser = DBusername dbpass = DBpassword dbport = 3306 dbsock = /var/run/mysqld/mysqld.sock (or where you have it)
This works for me for the CDR data!

If you do some SQL DB lookups in the dialplan you should do the changes in there!