How to create a mysql password for root

Tyler Tyler (270)

If you've just installed mysql, you will probably want to create a password for the root user.

Here's everything you'll need to complete this guide:


Simply type: mysqladmin -u root password PASSWORD where PASSWORD is the password you'd like to use. Another example: mysqladmin -u root password 5a0ZI73SU8xk If you need to generate a password go to