输入 php composer.phar install 后出现下面报错,求大神指点
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating optimized autoload filesIlluminate\Foundation\ComposerScripts::postInstall
php artisan optimize
[Illuminate\Database\QueryException]
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
sword: YES) (SQL: select * from config)
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
sword: YES)
Script php artisan optimize handling the post-install-cmd event returned with error code 1