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

  1. 进入了mysql后输入:mysql -u root
  2. 输入:use mysql
  3. 输入:update user set password=old_password('scf') where user='root' and host='localhost' ;
  4. 输入:FLUSH PRIVILEGES;
posted @ 2010-09-20 11:07  麦飞  阅读(1863)  评论(0编辑  收藏  举报