THINKPHP:SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
原因:数据库密码不对解决步骤:1.在MySQL的my.ini中加入skip-grant-tables2.cmd进入MySQL的bin目录下,mysql-hlocalhost-uroot-p连接数据库,即使不输入密码也会连接ALTERUSER'root'@'localhost'IDENTIFIEDWITHmysql_native_passwordby'root';更改密码后退出,重新连接不报错,成功