Whenever I install mysql the important password setting instructions always scroll up off the console screen, so I’m putting them here.

# msqladmin -u root password password

# msqladmin -u root -p -h localhost password password