Quick question
Why do we use -u
in the first command and --username
in the second one.
Are they the same or different?
Same thing for -p
and --password
.
Thanks
mongo admin -u root -p root123
mongo --host 127.0.0.1:27017 --username root --password root --authenticationDatabase admin