Skip to content

Original tools against MachNoSQL

The vendors’ own tools connect to MachNoSQL with the same options they use for the original database; only the host changes.

Terminal window
mongosh "mongodb://app:secret@machnosql.example.com:27017/shop?authSource=admin"
mongodump --uri "mongodb://app:secret@mongo.example.com:27017/?authSource=admin" --archive=shop.archive --gzip
mongorestore --uri "mongodb://app:secret@machnosql.example.com:27017/?authSource=admin" --archive=shop.archive --gzip
mongoimport --uri "mongodb://app:secret@machnosql.example.com:27017/shop?authSource=admin" --collection orders --file orders.json
mongoexport --uri "mongodb://app:secret@machnosql.example.com:27017/shop?authSource=admin" --collection orders --out orders.json

Compass: paste the same URI into “New connection”.

Terminal window
redis-cli -u "redis://:secret@machnosql.example.com:6379/0" PING
redis-cli -h machnosql.example.com -a secret --scan --pattern 'session:*'
redis-cli -h machnosql.example.com -a secret --bigkeys
redis-benchmark -h machnosql.example.com -a secret -t get,set -P 16 -q
redis-cli -c -h machnosql.example.com -a secret CLUSTER SLOTS # cluster mode

RedisInsight: add a database with host machnosql.example.com, port 6379.

Terminal window
cqlsh machnosql.example.com 9042 -u app -p secret -e "DESCRIBE KEYSPACES"
cqlsh machnosql.example.com 9042 -u app -p secret -e "COPY iot.readings TO 'readings.csv' WITH HEADER = true"
Terminal window
export AWS_ENDPOINT_URL_DYNAMODB=https://machnosql.example.com:8000
aws dynamodb list-tables
aws dynamodb scan --table-name Orders

Or per command: aws dynamodb list-tables --endpoint-url https://machnosql.example.com:8000. NoSQL Workbench: add a connection with the same endpoint.

Terminal window
curl -u elastic:secret https://machnosql.example.com:9200/_cat/indices?v

Kibana (kibana.yml): elasticsearch.hosts: ["https://machnosql.example.com:9200"]. OpenSearch Dashboards: opensearch.hosts with the same URL.

Terminal window
cypher-shell -a neo4j://machnosql.example.com:7687 -u app -p secret "MATCH (n) RETURN count(n)"

Neo4j Browser: connect URL neo4j://machnosql.example.com:7687.