I am working on migration of our Data Warehouse project from Alibaba Cloud to Huawei Cloud this week. All goes well, except one issue occurs when I tried to connect to MongoDB using MongoDB Compass Community.
As I have presented in my previous post, I have deployed MongoDB service using docker and I have successfully connected to my MongoDB database from IPython console. So I firstly tried again the visit from Ipython today to make sure that the MongoDB service is still running on Huawei ECS. It IS still working well:
Then I open MongoDB Compass Community and fill the login information as below (our domain name has not yet been authorized so I have to use Ip address for hostname):
However, when I click "CONNECT" button, nothing happens.
In fact, as explained in official manual of MongoDB, the standard URI syntax for connection is as
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]. Thus in my case, the Compass software has strangely used
ip:port as the Database name to visit. Since there is no database with such name, so it shall do nothing and stays in the connection interface.