Couldn't connect to the PD Server using `127.0.0.1` in TiDB

99 Views Asked by At

I have deployed a TiDB cluster for testing. When I was using PD Control, I found that I could only connect to the PD server using the local IP address, but couldn't connect to it using 127.0.0.1. I'm wondering why.

1

There are 1 best solutions below

0
On

If your TiDB cluster is deployed using TiDB-Ansible, the PD external service port is not bound to 127.0.0.1, so PD Control won’t recognize 127.0.0.1.