can connect mysql through ip but not localhost
i have setup a ubuntu box with ngix and php-fpm, when i test install wordpress , it seem like i can't use localhost to connect the database, i need to use 127.0.0.1 in order to complete the wordpress setup.
is there something i need to tweak on /etc/hosts ?