When I'm working locally, I don't really need to enter my password to access my database. I changed my root password when I first installed mysql, but I don't know how to change my password back. What should I do?
|
feedback
|
migrated from superuser.com Jan 16 '10 at 19:09
This question came from our site for computer enthusiasts and power users.
|
Rather than removing the password (which may have unpleasant consequences in the future if you happen to expose that server to the wilds), put the current password (and your username) into
This gives MySQL the awesome ability to autologin using the credentials provided, without leaving you wide open for unpleasantness in the future. | |||
|
feedback
|
|
To change the root password to
To change it so root doesn't require a password:
Note: I think it matters that there isn't a space between the | |||
feedback
|
For reference: the official mysql docs. | |||||
feedback
|