Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Avoid a possible MySQL5 error on first run' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Avoid a possible MySQL5 error on first run
Authored by: derekhed on Aug 10, '05 01:20:46PM
I may have copied this over from my prior installation (10.3.9), but the /etc/hosts file usually contains an entry to translate localhost to 127.0.0.1 Here is an excerpt of mine:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
The nice thing is you can add your own urls to refer to your own machine any way you want. This over-rides the 'official' domain names, but is very useful for testing dynamic websites. Here is one of my lines after editing the file:
127.0.0.1       localhost www.testder.com
Now www.testder.com will always refer to my own machine.

[ Reply to This | # ]