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

Shane Dalton
Shane Dalton
12,412 Points

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

Hi guys,

I am trying to develop locally. I have Mamp set up on a Mac and I am loading an old website to get an idea of how it looks without having to buy hosting.

I have no problem accessing 2 other websites but cannot get this site to load with the above error. I have gone onto a few forums but the information there seems to be geared towards PC and Linux.

Has anyone encountered this error before and have a quick fix?

Thanks

Shane

3 Answers

take a look at the below thread:

deprecated wordpress install

Use the plugin suggested.

Shane Dalton
Shane Dalton
12,412 Points

Thanks Jacob,

I tried the deprecated wordpress install and no joy.

What I am trying to do is get an already made website to run on Mamp. I have installed wordPress in different site folders but I cannot load the website content.

When I access the WordPress dashboard the original themes etc are there and there is no website.

How do I load the website onto the newly installed Wordpress?

I used phpMyAdmin in Mamp to create new sql tables which matched the wp-config file in the website I am trying to load. I gained access to wordpress but the site isn't there. Very confused.

Thanks

Okay, couple of questions:

  1. when you log in to your NEW site using mamp, what password are you using? is it a new password or the same password as the OLD site?

  2. Did you use any db migrate tools to import the old database to the new folders?

  3. In themes in the backend, does the theme you want show up, or no?

What I think is going on at first glance, is that you are not accessing the database of the wp-content file, so your theme is not showing up.

Shane Dalton
Shane Dalton
12,412 Points

Hi Jacob,

When I click on the website inside the \index root directory in my browser, I get the error "Error establishing a database connection"

I tried several different things from here on in, using phpMyAdmin, but i'm interested to see what you think I should do from this point onwards.

I cannot login to the new site I get the above database error.

Didnt use any db migrate tools to import the old database to new folders.

When I finally did get logged in the website doesn't show up. Maybe when I reset the wp-config file to the updated db_User, db_Password configurations etc I have to change some other associated files?

The website was live for a few years but now i just want to view it locally

What do you mean by website not showing up? a white screen, or your theme is not in the themes directory?

I would suggest you reset the wp-config file.

be able to log into the backend of the local site. first.

go into the old site and install the plugin all in one db migrate. it's free.

go into the local site and install the same plugin

then from the old site, export the DB into a zip file.

then in the local site import the zip file from the same plugin.

refresh and you should have that site on you local environment

BIT OF WARNING: Make sure you know have the username and password from the old site, you will have to use them to log into the local wordpress site. After the migrate.