Hello @rasika. You can locate the database URL within the database details. For cPanel you'd want to use
localhost as the host name unless you're needing to use a remote connection. In which case, you'd use the cPanel IP address instead.
If you're using Plesk then you'd use the database server.