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 Installing WordPress Locally Installing WordPress Locally Setting up the Environment

Alex L
Alex L
5,024 Points

Cannot connect to phpAdmin

I have read other peoples issue and still not found a solution to it.

mysqli_real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

2 Answers

Joeri Abbo
PLUS
Joeri Abbo
Courses Plus Student 3,036 Points

Are you sure the configurations are correct? If you are running on a mac run something like sequel pro(for windows something like MySQL Workbench). And add the same settings if you would connect to the database you know it isnt a wrong poort or something like that.

Alex L
Alex L
5,024 Points

It's all good for some reason it wasn't working with MAMP as apparently, I had another SQL Server running or something so I decided to use XAMPP and it works fine now.