1) Login to mysql server, type following command at shell prompt:
$ mysql -u root -p2) Use mysql database (type command at mysql> prompt):
mysql> use mysql;3) Change password for user root:
mysql> update user set password=PASSWORD("NEWPASSWORD") where User='root';4) Reload privileges:
mysql> flush privileges; mysql> quit
No comments:
Post a Comment