Dynadot โ€” .com Transfer

Mysql Database

SpaceshipSpaceship
Watch

JoshHendo

Established Member
Impact
7
I want to connect to a database that is not on my server. What would I put insted of localhost, or what code should i put if it isn't the same as usual. B-) (For PHP)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Replace localhost with the database server IP address.

And you'll have to authorize remote connexion on the database server for your web server too...
 
0
•••
dgaussin said:
Replace localhost with the database server IP address.

And you'll have to authorize remote connexion on the database server for your web server too...
this is what i get when i put in the IP address :( :

Parse error: parse error, unexpected T_DNUMBER in /home/xvsxpne/public_html/php/dn2/install/finish.php on line 21
 
0
•••
It's a PHP syntax error you have here, not mysql related.
Did you quote the IP address ie. '127.0.0.1' ? Check your code syntax anyway.
 
0
•••
You can also put the domain name instead of the ip address (since the domain just resolves to an IP address).

Let me know if you need anything else, Josh.

-Steve
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back