User Tools

Site Tools


how_to:localhost_missing_from_vista_hosts_file

Localhost missing from Vista HOSTS file

The PostgreSQL database server needs to be able to resolve the 'localhost' name for it to run. On some Windows Vista installations, the HOSTS file seems to be missing the localhost entry (usually it is there, but it seems to be a common problem for it not to be there).

To resolve this problem, find Start → Programs → Accessories → Notepad, and right-click Notepad, and choose Run as administrator. Then, choose File → Open in Notepad, and open c:\windows\system32\drivers\etc\hosts. Add a line at the bottom saying:

127.0.0.1 localhost

Save the file, and that should resolve the problem.

how_to/localhost_missing_from_vista_hosts_file.txt · Last modified: 2018/11/14 10:45 (external edit)