title: Laravel 5.8 Installation Error In database.php line 58: Undefined class constant 'MYSQL_ATTR_SSL_CA'
body: <p>When I tried to install Laravel 5.8 it throws Error</p>
  
  <blockquote>
    <p>In database.php line 58:</p>
    
    <p>Undefined class constant 'MYSQL_ATTR_SSL_CA'</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/yJjoc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yJjoc.png" alt="enter image description here"></a></p>
  
  <p>After this I have tried to run the application on server. It works fine sometimes. Sometimes it throws the same error. I couldn't run any commands on Artisan too. Why this happens and How to solve this?</p>