title: using a mysql database using laravel
body: <p>I'm trying to use a MySQL database using PHP and laravel, so far I have created the database in phpmyadmin called &quot;laravel&quot;, i have updated my .env file to the following:</p>
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=laravel
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>
  <p>but when I run &quot;php artisan migrate&quot; in the terminal, I get the following error:</p>
  <p><a href="https://i.stack.imgur.com/hTSGG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hTSGG.png" alt="enter image description here" /></a></p>
  <p>How can I fix this?</p>