run("/test.js")
in mongo shell. i always get error
run("/test.js") shell: started program /test.js sh2516| Unable to start program /test.js errno:13 Permission denied 255
for test i add 777 permission on this file i doesn't have any passwords on DB
test.js is empty
What am I doing wrong?
Definition. db.runCommand(command) Provides a helper to run specified database commands. This is the preferred method to issue database commands, as it provides a consistent interface between the shell and drivers. Parameter.
mongorc. js File. When starting, mongo checks the user's HOME directory for a JavaScript file named .
try using load() rather than run(). load is for javascript while run is for system binaries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With