数据库出现1045 access denied for user 'root'@'localhost' using password yes (转)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了数据库出现1045 access denied for user 'root'@'localhost' using password yes (转)相关的知识,希望对你有一定的参考价值。
在mysql命令行中执行
SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘123456‘);
GRANT ALL PRIVILEGES ON *.* TO ‘root‘ @‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;
flush privileges;
若以上方法行不通则用:
use mysql;
UPDATE user SET Password=PASSWORD(‘123456‘) where USER=‘root‘;
flush privileges;
以上是关于数据库出现1045 access denied for user 'root'@'localhost' using password yes (转)的主要内容,如果未能解决你的问题,请参考以下文章
PHP连接Mysql数据库出现Warning: mysqli_connect(): (HY000/1045): Access denied的解决办法
数据库出现1045 access denied for user 'root'@'localhost' using password yes (转)
Django链接Mysql 8.0 出现错误(1045:Access denied for user 'root'@'localhost' (using passwor
登录mysql数据库出现 : ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using
ERROR 1045 (28000): Access denied for user in xampp Local Host
解决用navicate远程连接数据库出现1045 access denied for user 'root'@'localhost' using password ye