Posted by Ivαn Sαnchez Ortega on 03/18/06 01:57
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
avenpace@gmail.com wrote:
> I got error when using mysql_connect function in my php script.
> If i set the db host to localhost, it give me that error altough all
> the user and password that I wrote is true(I can login using that
> username/passwd using mysql console), but when I change the db host
> into 127.0.0.1 mysql_connect will work.
Is there an entry in your /etc/hosts file regarding 'localhost'??
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEG0zx3jcQ2mg3Pc8RAj8UAJ9EqD+RZp7Fa2n8udiS/oS59x2OvQCfcZy/
VOA0vJhV/G6FSXNc9LtIZgs=
=RlKw
-----END PGP SIGNATURE-----
[Back to original message]
|