Log in as root and stop the mysql daemon. Now lets start up the mysql daemon and skip the grant tables which store the passwords
کد:mysqld_safe –skip-grant-tablesکد:mysql –user=root mysqlNow kill your running mysqld, then restart it normallyکد:update user set Password=PASSWORD(‘new-password’) where user=’root’; flush privileges; exit;