title: How to enable PDO_MYSQL for CLI?
body: <p>I'm trying to learn the Symfony framework for PHP but having issues with the command line version of php.</p>
  
  <p>When trying to create the database tables:</p>
  
  <pre><code>./symfony doctrine:insert-sql
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>Couldn't locate driver named mysql
  </code></pre>
  
  <p>This is only an issue with the command line version of php.  I've had doctrine working no problem.</p>
  
  <p>After quickly reading up on the problem, it seems I need to enable PDO_MYSQL for the CLI installation of php.  I've looked in the php.ini file and there does not appear to be a relevant entry for it.</p>
  
  <p>Is there any easy way to make the CLI version use exactly the same configuration of my LAMPP configuration, in order to minimise complications in the future?</p>
  
  <p>Any advice would be greatly appreciated.</p>
  
  <p>Thanks.</p>