So: - you got acces to the database - you are not allowed to perform a specific query
Did you try to perform such query with a tool like MongoHub <https://github.com/jeromelebel/MongoHub-Mac> or Robomongo <https://robomongo.org/>? On 4 March 2016 at 15:11, <[email protected]> wrote: > Hi, > > I'm new to doctrine and the ZEND framework, as well as to mongodb. But I > had to migrate an existing web application to another server as the old > provider had to shut down. Now, I'm faced with the problem, that the > website cannot access the mongodb. > In the application.ini are the credentials and new host address specified, > for doctrine and mongodb are separately configurations available. > When I try to access the database I get the following error: > > exception 'MongoException' with message 'Cannot run command count(): not > authorized on dababase_name to execute command { count: "CollectionName", > query: { vis: true, l: "de", vs: { $gt: 0 } } }' in > /src/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php:241 > Stack trace: > #0 /src/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php(241): > MongoCursor->count(false) > #1 /src/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Cursor.php(372): > Doctrine\MongoDB\Cursor->Doctrine\MongoDB\{closure}() > ... > > The user has read and write permission on the application's database and > can login using the admin database to authorize, but with doctrine, I have > no permission to read the objects returned from the database. > > I'm using: > Zend Framework 1 > mongod 2.6.11 > doctrine 2.5.3 > > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
