title: PHP.exe (CLI) can't connect to MySQL while Firefox can!
body: <p>I have installed XAMPP on a Windows XP Machine. PHP scripts are working fine through the browser.</p>
  
  <p>Initially, PHP.exe (CLI) was failing with error - can't load php_pgsql.dll</p>
  
  <p>I disabled extension=php_pgsql.dll in the php.ini file and PHP.exe stopped to fail.</p>
  
  <p>However, even now I am not able to run a PHP script from the CLI even though the same script runs fine through the browser.</p>
  
  <p>The script fails at mysqli_connect() with error - Can't connect to MySQL server on '127.0.0.1'</p>
  
  <p>Has somebody else faced the same problem?</p>
  
  <p>Kshitij</p>