Why can I connect through Navicat but not through MySQL?

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 为什么我通过navicat可以连上,但是mysql连不上

| username: emerson_cai

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]

[root@localhost cloudsky_ops]# mysql -u root -h -p 4000 -p
Enter password:
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘’ (113)
[root@localhost cloudsky_ops]#

| username: DBRE | Original post link

-P 4000

| username: emerson_cai | Original post link

Thank you

| username: zhanggame1 | Original post link

Two -p are case-sensitive.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.