Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Wally Bryan
Wally Bryan
4,350 Points

Which wordpress database is being used?

I have acsess a to a C panel account / hosting account -

Looking at this account I have downloaded all files for the site, when I download and update the wordpress data base, then load the site on local host, it goes to the websites, web address - www.example.com, rather than showing as localhost in the URL -

When I write a condition in the WP config file for the site to only reference the local host files the site looks completely different.

Question

1) as I have acsess to there site, is there a definitive way to find out which database and worspress file is being used for the hosting address? i.e. www.example.com is using X.html and X-wp.congig with X data base (im very sorry for the rather overview question - but seems like a small detail that I cannot find the answer to).

My goal is to download the site to my local host to test plugins for a friend - treehouse covers migrating a site live but not to a local host.

Warm regards and thank you for any input you might have, Wally

1 Answer

Shehan Dissanayake
Shehan Dissanayake
19,119 Points

You have to update all records with "www.example.com" in your database to "localhost", This article is about moving a site from localhost to live click here to read the article but in your case, you have to do the opposite.