title: Access denied for database in laravel
body: <p>I'm just beginning at Laravel and I have some issue with the database. I tried to make a php migrate and got the following error : </p>
  
  <p><a href="https://i.stack.imgur.com/vJIG1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vJIG1.png" alt="enter image description here"></a></p>
  
  <p>here is my database.php file : </p>
  
  <pre><code>[...]
  'default' =&gt; env('DB_CONNECTION', 'mysql'),
  [...]
  
  'mysql' =&gt; [
          'driver'    =&gt; 'mysql',
          'host'      =&gt; env('DB_HOST', 'localhost'),
          'database'  =&gt; env('DB_DATABASE', 'laravel'),
          'username'  =&gt; env('DB_USERNAME', 'forge'),
          'password'  =&gt; env('DB_PASSWORD', 'password'),
          'charset'   =&gt; 'utf8',
          'collation' =&gt; 'utf8_unicode_ci',
          'prefix'    =&gt; '',
          'strict'    =&gt; false,
          'engine'    =&gt; null,
          'port' =&gt; env('DB_PORT', 3306),
      ],
  </code></pre>
  
  <p>and my .env : </p>
  
  <pre><code>APP_NAME=Laravel
  APP_ENV=local
  APP_KEY=
  APP_DEBUG=true
  APP_LOG_LEVEL=debug
  APP_URL=http://localhost
  
  DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=33060
  DB_DATABASE=homestead
  DB_USERNAME=homestead
  DB_PASSWORD='password'
  
  BROADCAST_DRIVER=log
  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=smtp.mailtrap.io
  MAIL_PORT=2525
  MAIL_USERNAME=null
  MAIL_PASSWORD=null
  MAIL_ENCRYPTION=null
  
  PUSHER_APP_ID=
  PUSHER_APP_KEY=
  PUSHER_APP_SECRET=
  </code></pre>
  
  <p>I tried several things like replace <code>localhost</code> by <code>192.168.10.10</code> or <code>127.0.0.1</code> in my .env but I still have an error. I also tried to do : 
  <code>mysqladmin -u homestead -p status Enter password: secret</code> but It doesn't work, they ask for a password and no matter what I put, they tell me <code>error: 'Access denied for user 'homestead'@'localhost' (using password: YES)'
  </code></p>