You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I get the following error: Command failed with error 13 (Unauthorized): 'renameCollection may only be run against the admin database.' The same command runs fine from studio3T.
Is there any step I am missing?
EDIT: The same error happens if I use adminCommand.
Basically just change to : <ext:adminCommand> <ext:command><![CDATA[ { renameCollection: "myDb.foo", to: "myDb.bar" } ]]></ext:command> </ext:adminCommand>
adminCommand does the switch do admin db and runs the command. Please ensure you are using latest extension as it was fixed in: #111
Please note for adminCommand better to use placeholders for db name in order the scripts to be portable and could be applied to different DBs
I try to execute a rename command:
But I get the following error:
Command failed with error 13 (Unauthorized): 'renameCollection may only be run against the admin database.'
The same command runs fine from studio3T.Is there any step I am missing?
EDIT: The same error happens if I use
adminCommand
.┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: