Mognodb database connection method
Standard connection
$m = new Mongo(“mongodb://${username}:${password}@localhost:${port}”);
Other connections
$m = new Mongo(“mongodb://localhost:${port}/${username}:${password}”);
Sometimes (frequent refreshes) switch the link mode when the link is broken