Hi codders,
to solve these isssues is necessary to do this:
After mongodb installation, is necessary add like a global variable for access from cmd or cli:
add variable > system properties > path:
C:\Program Files\MongoDB\Server\5.0\bin
this solved excute mongod or mongo from cli.
-----
And for the connection from cli or cmd by mongod or mongo
It's necessary to create a db in C: path.
create dirs in c: /data/db
into the path db run this command from cli terminal as administrator:
mongod --dbpath="c:\data\db"
This solved initialitation from cli using mongd and mongo
Thanksfully fonts:
https://docs.mongodb.com/manual/administration/security-checklist/
https://sqlserverguides.com/mongodb-is-not-recognized-as-an-internal-or-external-command/#:~:text=or%20external%20command-,mongo%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command,will%20run%20without%20any%20issues.