PHP e MySQL

Stato
Discussione chiusa ad ulteriori risposte.

Gfff

Utente Electrum
26 Luglio 2007
359
38
16
156
Esiste un modo per collegarsi a un database MySQL esterno? nel senso

la funzione mysql_connect ( host,user,pass) si collega alla porta 3306. e per farlo collegare a un' altra porta?

Come si può fare?
 
Codice:
It can also include a port number. e.g. "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for the localhost. 

If the PHP directive mysql.default_host is undefined (default), then the default value is 'localhost:3306'. In SQL safe mode, this parameter is ignored and value 'localhost:3306' is always used.

hostname:port
 
Stato
Discussione chiusa ad ulteriori risposte.