I have a fresh Joomla installation in a Mac OS X and I have configured a database to connect the application to. By default, Joomla uses localhost
to connect (variable $host
), but it does not work.
However, if I replace localhost
with 127.0.0.1
it does connect. I have installed MySQL using MacPorts.
It seems this is the opposite problem asked in another question.
What can I do to be able to use localhost instead of plain IP?
Here is my /etc/hosts
content:
##
# 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
fe80::1%lo0 localhost
Thanks!!