Jump to content
Larry Ullman's Book Forums

Changing Root Password


Recommended Posts

the code on page 43 to change the root password does not seem to work anymore. Probably because the book is old. But...

 

You have listed to change the root password via mysqladmin...

 

bin\mysqladmin -u root password 'thenewpassword'

 

The quotes cause a problem when creating the new password, as single quotes aren't trimmed, so your new password will include the single quotes

 

This works

 

bin\mysqladmin -u root -p password thenewpassword

Link to comment
Share on other sites

 Share

×
×
  • Create New...