Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.