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 trialSam Prendiville
911 PointsRoot password?
Hi William, when I try to create a localhost new server instance profile on MySQL Workbench it asks for a root password to connect to the following server, how do I find out what my root password is, can i create one?
Thanks William Sam
2 Answers
Greg Kaleka
39,021 PointsIf you haven't set up a root mysql user before, you might try a blank password. I believe that is the default. If that does not work, you may need to reset the root password, which is not a particularly fun thing to do if you're not comfortable on the command line. Give the blank password a try, and if that doesn't work, we'll go from there!
Cheers
-Greg
Sarah Lehnert
9,405 PointsI am having the same issue. I can't connect to the server and I think it is because I have an invalid password. I have no idea how to reset it thoughj
Larry Liu
3,127 PointsLarry Liu
3,127 PointsI'm stuck on this too and a blank password isn't working for me. When I installed mysql.5.7.16-osx10.11-x86_64 it gave me a password for root@localhost. This password doesn't seem to work when I enter it in. Instead, it gives an error about ALTER USER.
Greg Kaleka
39,021 PointsGreg Kaleka
39,021 PointsWhat's the error, and what's leading up to it? An ALTER USER error sounds like you might be trying to modify the password rather than enter it... or something - not sure
Greg Kaleka
39,021 PointsGreg Kaleka
39,021 PointsHere's a place to get started: http://stackoverflow.com/questions/16556497/how-to-reset-or-change-the-mysql-root-password/16556534