Answer the question
In order to leave comments, you need to log in
Switching to mongoDB?
I used to use mysql, and still liked everything, as a hierarchical structure was not needed.
And in principle, as I looked at noSql, it is more convenient. In general, I chose key-value (mongodb) I've
been sitting all day trying to figure it out. On nodejs, insert/update/delete/find seems to be understandable.
But in php, digging, digging, but nothing.
Generally I use php-7. And as I already understood new mongo();
It doesn’t roll there, dug up, something about MongoDB \ Driver \ Manager.
It would seem that everything is normal, it seems that I even understood how to add, edit and delete data.
But how to get them?! Couldn't find properties and methods.
In general, the question is this:
1) Why is it not necessary to create a specific user to write to the database.
2) How to read something from the database using php?
Answer the question
In order to leave comments, you need to log in
I used to use mysql, and still liked everything, as a hierarchical structure was not needed.
There is a wonderful ODM for php
phpmongo.readthedocs.io/en/latest/#connecting
I use it, I can't get enough
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question