This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== mongo ===== Levantar, reiniciar, bajar mongodb: <code> # systemctl start mongod # systemctl stop mongod # systemctl restart mongod </code> Cliente mongo <code> $ mongo </code> ==== Conceptos básicos ==== ^ SQL ^ mongodb ^ | database | database | | table | collection | | row | document | | column | field | ==== CRUD ==== ^ SQL ^ mongodb ^ | use database | use database | | show databases | show databases | | show tables | show collections | | | db.stats() | En el siguiente link se encuentra algunos ejemplos: * https://docs.mongodb.org/manual/reference/sql-comparison/ ==== Reparar la base de datos ==== <code> mongod --dbpath /var/lib/mongodb/ --repair --repairpath /var/lib/mongodb/repairpath/ chown -R mongodb.mongodb /var/lib/mongodb/ </code>