Did you try google? First hit: MySQL Change root Password. As a side note, if you are accessing your database as root by default, it is better practice to create a user with the desired permissions...