Jump to content

MySQL Root Password

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Prog

Prog

    Learning Programmer

  • Members
  • PipPipPip
  • 98 posts
How can I set/reset the MySQL root password?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
To set it for the first time use:

$ mysqladmin -u root password <yourpassword>


And of course replace <yourpassword> with the password you wish to use.

To change it use this command:


$ mysqladmin -u root -p <currentPassword> <NewPassword>