I've got this error:
MongoDB\Driver\Exception\ConnectionTimeoutException: Failed to look up SRV record "_mongodb._tcp.training.gd45p.mongodb.net": No such file or directory
While executing this code:
$mongo = new MongoDB\Client("mongodb+srv://admin:{mypassword}@training.gd45p.mongodb.net/{db}?retryWrites=true&w=majority");
$db = $mongo->test->users;
$result = $db->insertOne(['name' => 'Tom', 'role' => 'admin']);
What does this error mean?