$client = new MongoClient('mongodb+srv://username:password@urlToCluster');
它给我的错误是
Uncaught exception 'MongoConnectionException' with message 'MongoClient::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known'
无法使用连接字符串连接