$ mongo
use dbname
Call this command before using a specific database. This command also creates the database, but the new database is only save when you insert the first document in a collection.
In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.
The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.
| #include <iostream> | |
| #include <list> | |
| #include <algorithm> | |
| using namespace std; | |
| int main() | |
| { | |
| list <int> l; | |
| cout << "l.size() : " << l.size() << endl; // size = 0 |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| int main() | |
| { | |
| string strBuf; | |
| while(getline(cin, strBuf)) | |
| { | |
| cout << strbuf < '\n'; |
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <stdio.h> | |
| using namespace std; | |
| #define MAX_USER 6 | |
| class UserInfo | |
| { |
| #include <iostream> | |
| #include <vector> | |
| #include <stdio.h> | |
| using namespace std; | |
| template <typename T> | |
| class Stack | |
| { | |
| public: |
| #include <iostream> | |
| #include <list> | |
| #include <stdio.h> | |
| using namespace std; | |
| class Point | |
| { | |
| public: | |
| Point(int x, int y) :xPos(x), yPos(y){} |
| from pwn import * | |
| leak = lambda s, x, y : int(s.recv().split('\n')[x].split(' ')[y], 16) | |
| #context.log_level = 'debug' | |
| NAME = './r0pbaby' | |
| elf = ELF(NAME) | |
| #rop = ROP(elf) |
| ''' | |
| from socket import * | |
| import struct | |
| HOST = '0.0.0.0' | |
| PORT = 7777 | |
| s = socket(AF_INET, SOCK_STREAM, 0) | |
| s.connect((HOST, PORT)) |