In the start i have connected from mysql so it gave me the following error.

ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

and then when i write this following command so open new session and start working so the mysql connect successfully

mysqld --skip-grant-tables


But after one hour mysql gave me the same error like

ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

In the strart i thought that i have entered the wrong password but i don't know whey that error i faced it,

Can any one tell me the actual thing.

Regards
Noor