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.

Marius Furnica
9,195 PointsInstalling wordpress locally error
After i installed wordpress locally with succes and yesterday was working , i wanted today to continue my lesson about using Wordpress and surprise a error came "Error establishing a database connection" also when i try to enter in phpMyAdmin it's showing this : Cannot connect: invalid settings. 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. What can i do?
3 Answers

Marius Furnica
9,195 PointsDid someone have the same problem ? I really don't want to install 10 times wordpress

Mikkel Rasmussen
31,769 PointsDid you remember to start Apache and the MySQL?

Marius Furnica
9,195 PointsWhen i start the server Apache was on( green) and MySQL off idk why...than in enter in the web started page and i open from there somehow. Now is working .