Is there a difference between (local), '.' and localhost?

后端 未结 3 1319
情歌与酒
情歌与酒 2021-01-03 20:10

I\'ve used all three of these when making local programmatic connections to databases. Is there any real difference between them?

3条回答
  •  醉酒成梦
    2021-01-03 20:41

    As far as I know the dot "." and "local" are windows application terms, not a "standard" term, localhost resolves to 127.0.0.1 in the TCP/IP level so if you want to make sure you are "compatible" across platforms you should use either localhost or 127.0.0.1

提交回复
热议问题