Hi guys,
1. you go to ftp
2. Login your Domain
3. Go to app–>etc–>local.xml
There you can see below code there your database details stored.
<connection>
<host><![CDATA[yourhost]]></host>
<username><![CDATA[username]]></username>
<password><![CDATA[password]]></password>
<dbname><![CDATA[dbname]]></dbname>
</connection>
that’s all.