sensibill / mongo-dynamic-indexer Goto Github PK
View Code? Open in Web Editor NEWA tool for automatically recommending Mongo indexes based on your queries and your data.
License: MIT License
A tool for automatically recommending Mongo indexes based on your queries and your data.
License: MIT License
Hi,
got
with password. Sets profiling level to 1 manually. Then
mongodynamicindexer -d mongodb://user:pass@localhost:27017/database -c --simple
{ MongoError: not authorized on database to execute command { profile: 2 }
at Function.MongoError.create (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/error.js:31:11)
at .../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/pool.js:497:72
at authenticateStragglers (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/pool.js:443:16)
at Connection.messageHandler (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/pool.js:477:5)
at Socket.<anonymous> (.../lib/node_modules/mongo-dynamic-indexer/node_modules/mongodb-core/lib/connection/connection.js:333:22)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
name: 'MongoError',
message: 'not authorized on database to execute command { profile: 2 }',
ok: 0,
errmsg: 'not authorized on database to execute command { profile: 2 }',
code: 13 }
in mongodb.log:
2022-11-17T16:53:20.630+0300 I ACCESS [conn3439] Unauthorized: not authorized on database to execute command { profile: 2 }
but
mongo -u user -p pass --authenticationDatabase=database
is OK.
What's wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.