Ryan
Ryan

Reputation: 85

1an1 mysql ip address location

I'm trying to connect my class project to my server (1and1) and am having difficulty. It seems the correct answer is to not use the host name they provided me with but their IP address instead. Where can I find that address to the mysql db or do I need to wait until they are open and call?

Upvotes: 1

Views: 66

Answers (2)

Raging Bull
Raging Bull

Reputation: 18767

Two ways:

  1. ServerName=IP address

    They would have provided the ip address of the server to you. You can use the IP address.

  2. ServerName=HostName

    If you don't know the ip address right now, you can use the host name as server name. Like:

    ServerName="www.myhostaddress.com"

Both work for me all the time.

Upvotes: 1

Ryan
Ryan

Reputation: 85

Turns out it was something stupid. My domain was set to PHP4.0 and was using a PDO command which wasn't introduced until 5.2. Changed it to 5.5 and it started working. Thanks all for your input.

Upvotes: 0

Related Questions