ITeye博客

Mysql“using password: YES”的解决

crane.ding · 2014-11-15 14:57 · mysql · 数据库 · Markdown

错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)

解决方法:重置root用户密码


ps -ef | grep -v grep | grep  mysql | awk '{print $2}' | xargs kill -9
mysqld_safe --skip-grant-tables &
mysql -uroot -p
update user set password=password('123456') where user = 'root';

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。