Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't connect to localhost but can connect to 127.0.0.1

Status
Not open for further replies.

sphiengollie

Technical User
Mar 16, 2002
2
US
first, some background... when installing phpMyAdmin I could not use the default settings of connecting thru localhost but I did successful install with a connection thru 127.0.0.1

Now I'm trying to install PostNuke.723 and it's install program resolves the 127.0.0.1 to localhost. I started to go thru the install.php files and change this to explictly call 127.0.0.1

This worked somewhat but after editting about 20 files I decided to try to go at fixing the connection to 'localhost' problem.

I have solaris4.7 running Apache 1.3.27 with php4.2.3 and mysql3.23.42

So, my question, how do I setup my server to allow users to connect to the mysql daemon thru 'localhost'?
 
Have you check the hosts file. I believe it has the definition of localhost. You might make sure it is not set to localhost.localdomain.com. I have seen this as the default on some *nix installations.
 
I've gone through and checked my 'host' file.
- It includes: 127.0.0.1 localhost

I've also added:
mysql 3306/tcp
mysql 3306/udp
to my 'services' file, but still no connection?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top