How to remove mysql root password in ubuntu

    To remove mysql root password in ubuntu go to mysql command line and then remove it. To do this follow the steps 1. Open terminal and got to mysql
    mohit@ubuntu:$ mysql -h localhost -u root -p
    Enter password:
    mysql>
    2. Change the mysql password using following command
    mysql> SET PASSWORD FOR root@localhost=PASSWORD('');
    Query OK, 0 rows affected (0.03 sec)
    mysql>
    Your password sucessfully changed
    5
    Average: 5 (1 vote)