The most common reason for this in windows is that your PHP.INI doesn't have the mysql line uncommented, ...
stackoverflow.com