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

Development Tools

Using phpMyAdmin on XAMPP

I am using XAMP to create a database for a website I am toying around with after doing php and sql on Treehouse.

Everytime I load phpMyadmin it tells me I should reset the root password so I do but then everytime I do I get this : error 1045ing: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in XAMPP/xamppfiles/htdocs/..

how do I just set up a root password and not mess up all my XAMPP settings and how would I correct this error?

1 Answer

Cody Brantley
seal-mask
.a{fill-rule:evenodd;}techdegree
Cody Brantley
Front End Web Development Techdegree Student 3,356 Points

Hey Patrick, I believe you can navigate to http://localhost/security/xamppsecurity.php and from there you should be able to update your MySQL root password, when you do that and reload phpMyAdmin, it will ask you to login again, and then you use your new credentials.