Are you using localhost as the database host in your configuration file? The MySQL socket settings for the CLI SAPI might be pointed to the wrong location. You could try using 127.0.0.1 to use a TCP connection instead.
Are you using localhost as the database host in your configuration file? The MySQL socket settings for the CLI SAPI might be pointed to the wrong location. You could try using 127.0.0.1 to use a TCP connection instead.