i am a complete newbie to mysql and linux.what happened is i installed mysql and did this:
SET PASSWORD FOR 'arun'@'localhost' = PASSWORD('pass');
GRANT ALL PRIVILEGES ON *.* TO 'arun'@'localhost' IDENTIFIED BY 'pass' WITH GRANT OPTION;
then i ended up deleting the user with:
mysql>delete from mysql.user where not (host="localhost" and user="root");
and logged out of mysql
the problem is now i cant login and i get this error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
i guess now there are no users and password.please help me login.my exams are very close
Tags:
-
▶ Reply to This