Setting MySQL Password

To set up root password the first time:

$ mysqladmin -u root password NeWPasSwORd

To change an existing root password:

$ mysqladmin -u root -p oldpassword newpass
Enter password:

To change a normal user password:

$ mysqladmin -u dbuser-p oldpassword newpass

1 Comment

  1. Hi im one of the member of Barriga’s clan from Danao City, Cebu, Phils. I really like the site. I want to learn more how to make website. Using PHP or any….. Even though I am Computer Science Graduate I honestly accept that I have a less knowledge about PHP using MySql or web designing. As of now I’m on the process of learning PHP, CSS for web designing. To the “Barriga dot net” web developer I do hope you can help me for web developing or web designing. Cause I really want to extend my knowledge about this.

    Thanks and Regards to all Barriga’s abroad….

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.