mysql数据库出现:
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;
转载于:https://blog.51cto.com/12592428/1906943