note 119900 deleted from mongo.tutorial.connecting by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:29:24 +0000 |
| Subject: | note 119900 deleted from mongo.tutorial.connecting by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215176@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Another way to connect, that works for me:
require 'vendor/autoload.php';//composer require "mongodb/mongodb=^1.0.0.0"
$m = new MongoDB\Client("mongodb://alex:mypassword@10.111.0.2:27017/");
echo "Connection to database successfull. <br>";