title: show dbs gives "Not Authorized to execute command" error
body: <p>I've spent some time trying to figure out what is wrong but as I could not find out, I decided to ask here.</p>
  
  <p>I am running MongoDB(Windows 64-bit 2008 R2+) version 3.2.3 on Windows 8, the paths are :</p>
  
  <p><strong>C:\MongoDB\bin</strong> for the installation</p>
  
  <p><strong>C:\data\db</strong> for the data folder</p>
  
  <p>I've installed following <a href="https://www.youtube.com/watch?v=GtD93tVZDX4" rel="noreferrer">this video</a> and <a href="https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/" rel="noreferrer">this tutorial</a> from the official documentation.</p>
  
  <p>The first issue might be, as I don't really know if it is an issue at all, the connection between the client(mongo.exe) and the server(mongod.exe).</p>
  
  <p>I lauched mongod.exe via the command line (with administrator rights), everything went fine, I got the message :</p>
  
  <pre><code>waiting for connections on port 27017
  </code></pre>
  
  <p>but when I launch mongo.exe via a new instance of the command line, the server(mongod.exe) doesn't print a message saying there is a new connection (it was the case in the tutorials I watched)</p>
  
  <p>On the other side, mongo.exe prints </p>
  
  <pre><code>connecting to : test
  </code></pre>
  
  <p>I don't know if everything is correct at this point but I still tried some basics commands like :</p>
  
  <p><code>show dbs</code> returns <code>not authorized on admin to execute command</code></p>
  
  <p>Basically, all the commands I tried had the same error message, even with "fresh" db I just created with <code>use 'dbName'</code></p>
  
  <p>Some answers online said I have to create a user with proper roles, I tried <a href="https://stackoverflow.com/questions/23943651/mongodb-admin-user-not-authorized">this one</a>.
  Still the same error message <code>not authorized to execute command</code></p>
  
  <p>My question is the following :</p>
  
  <p>Is is normal that mongod.exe doesn't show a new connection when I launch mongo.exe ? If it is correct then what can I do to make even the basic commands work ?</p>
  
  <p>Additional Informations :</p>
  
  <p>I tried to uninstall/re-install few times, with the "Custom mode" and the "Complete mode" in the Windows installer but it always lead to the same problem.</p>
  
  <p>I also tried to create a MongoDB Service following the official documentation but I'm not really sure if it was a good idea. (I can't add more links but it is in a section in the second link I shared.</p>
  
  <p><strong>Edit section :</strong></p>
  
  <p>I decided to try it on another computer which I have not touched for years, running on Windows 7 64-bit.</p>
  
  <p>I copied the MongoDB installation folder at the root of this computer, created \data\db folder and launched mongod.exe.</p>
  
  <p>Then I launched mongo.exe and this time, mongod.exe printed a message saying there is a new open connection which it doesn't on my actual computer. I think the problem is here because I was able to start the basic tutorial from the official documentation and perform simple commands like create a new db, insert, find, show dbs, etc. Everything that I am not able to do on my actual computer.</p>
  
  <p>So I think the problem is coming from the connection between mongod.exe and mongo.exe</p>
  
  <p>Do you have any idea how I could solve this problem as I have tried uninstalling few times.</p>