Database on different server - setting other than localhost?

Permalink
Good morning,

I know this is isn't ideal but I'm looking to host my database separately from my files. What setting do I put in the site.php file instead of 'localhost'?

Thanks
Chris

bernardmarketing
 
jbx replied on at Permalink Reply
jbx
You need to enter the IP address or hostname of the server that hosts your database.

Jon
bernardmarketing replied on at Permalink Reply
bernardmarketing
Thanks JBX.

So I could enter in 'http://174.121.85.92/~execms/' if my database was located there?

Thanks,
Chris
tallacman replied on at Permalink Reply
tallacman
Your host will tell you the address of the db in the db setup window. Itll be in the form dbhostserver.yourhostingprovider.somethinghere

You can get it in your cpanel in the mysql admin area.
bernardmarketing replied on at Permalink Reply
bernardmarketing
I'm not quite sure where you want me to look. In cpanel in phpMyAdmin?
tallacman replied on at Permalink Reply
tallacman
That should do it.