why you have this mistake?
first,startup your mysql-server.
then ,the root password is null.
use the command :mysql -u root -p
if the os ask you give the password ,enter only.
that ,you will get the :
mysql>
the command: set password for root=password("password");
you will change you mysql root password .