I can imagine two possible sources for this problem: IPv6 is enabled and localhost does not exist or ::1 Mysql's libmysql is used instead of PHP's libmysql. It happens that the IPv6 problem was the cause for this problem (as you stated later). The 2nd possibility happens a lot when someone installs...