Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Changing password
- Method #1: Use mysqladmin command to change root password
- ```
- $ mysqladmin -u root -p'oldpassword' password newpass
- ```
- Method #2: Changing MySQL root user password using the mysql command
- ```
- $ mysql -u root -p
- mysql> use mysql;
- mysql> update user set password=PASSWORD("NEWPASSWORD") where User='nixcraft';
- ysql> flush privileges;
- mysql> quit
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement