Mongo Basics

TAGS: mongo db

Basic mongo commands and checks

Begining

mongo db or showdbs #show all dbs use test #use or create new DB db.test.find("something") #find in db test something show collections #show collections db.createCollection("testCollection") #Create Collections rs.slaveOk() #give permission on slave queries - only for current connection

Written on February 1, 2018

Archive

linux openstack kubernetes gluster ceph ansible docker systemctl python openshift log centos sed registry kolla kibana keepalived elasticsearch deploy cloud-init auth HA zabbix vsphere vmware venv tools swift ssl ssh scm ruby rsyslog rhel rbac rabbitmq prometheus postgres policy pgpool2 patrole pacemaker ntp nfs net mq monitoring mongo mbr lvm logstash kubespray kubeadm kolla-ansible jenkins jekyII java ironic helm heketi harbor grub github ganesha fluentd fluent-bit fio drbd diskimage-builder devstack debug deb db cisco cicd ceph-ansible calico build bitbucket benchmarking apparmor api NUMA Linux Golang Go ELK 3par