Administrar

error LAMP casolà

xunilung | 09 Maig, 2007 18:57

Una vegada instal·lat el LAMP casolà no em podia connectar des d'un client al servidor mysql

xuni@apmf:~$ mysql -h 192.168.0.22 -u usuarimysql -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.22' (111)


Solució:

Comentar la línia

bind-address            = 127.0.0.1

de l'arxiu /etc/mysql/my.cnf
.....
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address            = 127.0.0.1
#
# * Fine Tuning
#
.....


Au! ja va bé

Comentaris

Afegeix un comentari
Amb suport per a Gravatars
 
Powered by Life Type - Design by BalearWeb - Accessible and Valid XHTML 1.0 Strict and CSS