mongodb连接远程数据库失败 mongo用php怎么添加数据?
mongo用php怎么添加数据?$connection=new Mongo(“example.com网站“)//链接到远程主机(默认端口)$connection=new Mongo(”example.
mongo用php怎么添加数据?
$connection=new Mongo(“example.com网站“)//链接到远程主机(默认端口)$connection=new Mongo(”example.com:65432“)//link to the custom port print of the remote host_ur($connection->listdbs())//可以打印出数据库数组以查看有多少个数据库。