I'm trying to execute the migrations and at the moment of executing the php artisan migrate command, it throws me this: (I have modified the error because now it throws me this one.)
[PDOException] SQLSTATE [HY000] [1044] Access denied for user '' @ 'localhost' to database 'school'
migrate [--bench [BENCH]] [--database [DATABASE]] [--force] [--path [PATH]] [--package [PACKAGE]] [--pretend] [--seed ]
I do not understand what I should do, I have already configured these routes __"app/config/local/database.php"__ *, *__"app/config/database.php"__
but I do not understand this error.
This is my code from the .env file
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString
APP_URL=http://localhost
DB_HOST=localhost
DB_DATABASE=colegio
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null