简体   繁体   中英

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM